Support Portal ContactGet in touch

Automatically Generate Documents with DocDrive365

   Words by CRM Consultancy

   on 17/04/2020 11:26:00

With DocDrive365 we have the ability to set any document template to automatically generate at opportune moments in our CRM processes, to minimise user input and ensure standard practice across a business.

Here, I will show you how to do this by utilising a few easy pieces of CRM workflow functionality.

Once we have created our document template in CRM, we can go to our solution and create a new workflow. Here we specify a name, choose the category ‘Workflow’ and choose our desired entity. In this case, we’re going to run this workflow as an on-demand workflow, so we untick the background workflow tick box. In the workflow creation screen, we will enable our workflow to be run as an on-demand process and as a child process, so that we can attach this to a business process flow later.

You then need to click ‘Add Step’ and scroll down to select the step called ‘YOURINSTANCE.Xrm.DocMan.Plugins’ then to select the option suffixed with ‘GenerateDocument’.


You will then see the following screen where you specify the following:

RecordURL – this should always be the dynamic value of ‘Record URL(Dynamic)’ from your specified entity.

Template – Here you select the document template that you created earlier.

FileName – This is just an optional single line of text to describe the document you’re creating.


Once you’ve filled in all these required fields, you can save, validate, and activate your workflow in your solution.

To test my workflow, I can go to any record of my specified entity ‘Case’, and click ‘Flow’ on the top ribbon, then select my new workflow. This generates my new document from the template into the DocMan panel on my case record.


To take this a step further in automation, we can utilise a great function of CRM that sometimes gets overlooked. We are able to attach workflows to business process flows, to trigger either when a user enters or exits a specific stage.

To do this, open the business process flow to edit, and click ‘Add’ select ‘Add Workflow’ and then choose which stage you want to trigger the workflow on.


You will then need to select your newly created workflow on the ‘Properties’ tab, and choose whether to trigger the workflow on stage entry or exit.


After you’ve done this, save and update the business process flow, and you’re good to go!

To test this functionality, I can go to any case record at the start of the business process flow. When I move from the previous stage into my ‘Testing’ stage – I will see my new document automatically appear in my DocMan panel for the case record.


Share this Article

Search Articles

Filter Articles

CRM Tech DocMan

Recent Articles

CRMCS Quick Start Guide: How To Produce a Microsoft Teams Live Event Dynamics 365 Marketing: Lead Scoring and Sales Acceptance Designing and Developing Microsoft Power Apps Portals Thank You for Attending CRMCS’ Webinar - Achieving B2B sales excellence with Dynamics 365 & Microsoft Teams Thank You for Attending Our Webinar - Achieving B2B sales excellence with Dynamics 365 & Microsoft Teams Webinar: Discover How CRMCS Have United Dynamics 365, SharePoint and Microsoft Teams To Create Sales Excellence Ignite your workflow by adding DocDrive365 to Office 365 The CRMCS guide to everything you need to know about integrating Teams with Dynamics 365 Saving Time By Keeping Documents In One Place TDE Database Encryption with On Premise Dynamics The Key to Successful Compliance in 2020 Part 2: Let’s get GDPR Compliant with Microsoft Power Automate Top 3 Essential Tips for Remote Working Dynamics 365 Marketing: Top 5 Best Features Dynamics Day in the Life - Puma Investments Can you use Teams to amplify collaboration in Dynamics? Part 1: Using a Scheduled Power Automate to Trigger Expiry Date Reminders The secrets of successful document collaboration in Dynamics CRMCS launches new AppSource approved DocDrive365 Dynamics Day in the Life - Moneypenny Release Management Add the App to Dynamics DocDrive365 Security: Day One - Getting Started with Dynamics to SharePoint Permissions Building a New Scheduled Process using Flow
  • "Paul has made a real difference to how my team of 24 people record and store valuable customer data and sales opportunities. Highly recommended."

    James, Operations Director

  • "Understanding your business allows us to advise when to implement aspects of CRM and, likewise, when not to."

    Paul McQuillan, Managing Director

  • "Dynamics 365 and CRMCS have made a real lasting difference to our business, allowing us to replace older systems that were holding back our performance."

    Grahame, Chief Operating Officer

  • "James worked well with us to help connect CRM with Outlook and relate how this might benefit our team using CRM for Property Care."

    Natalie, Property Care Supervisor

  • "Matt was really good with helping us run User Testing on the new Compliance Module of our CRM System."

    Tom, Compliance Administrator

Prefer to go old-school?

Write to us using the below addresses.

Head Office
CRM Consultancy
61 Oxford Street
M1 6EQ

London Office
CRM Consultancy London
Grosvenor Avenue

Content © CRM Consultancy.