web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Regarding document template

(0) ShareShare
ReportReport
Posted on by 310

Hello Sir,

I have a requirement that generate Word template using on demand workflow in other related custom entity.

But whenever I run workflow it shows only place holders of custom entity instead of actual entity data.

But when I generate a manual word template then it shows all the fields with actual entity data.

I have tried all the possibilities , but I didn't get the solution.

please help .

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Regarding document template

    Hi Manoj,

    Did you refer the blog link I shared above? Using the wokflow action "SetWordTemplate" you can select the template and the record for which you need to generate the remplate. You need to ensure that you use correct template and target record. You cannot generate "Contact" template by passing PaymentReciept entity record.

    Hope this helps.

  • Screen one Profile Picture
    310 on at
    RE: Regarding document template

    please provide some solution

  • Screen one Profile Picture
    310 on at
    RE: Regarding document template

    I also collected fields from other Custom entities during creation of Word Template

  • Screen one Profile Picture
    310 on at
    RE: Regarding document template

    "Payment Receipt " entity has  a  "Customer" field which is a "Contact" entity  and I have to generate that template in "Contact" as an attachment in Notes.

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Regarding document template

    Okay. So you have "Payment Receipt" entity on which you are running this workflow.  This "Payment Receipt" entity has a field called "Related Booking" which is a lookup to "Payment Receipt" entity. Is this correct? If yes, for which record you want to generate the template against as you have Payment Receipt on which the workflow is running and another record which is selected for Related Booking?

  • Screen one Profile Picture
    310 on at
    RE: Regarding document template

    I am sharing screenshots of on demand workflow , 

    step 1:

    7268.workflow2.png

    step 2 :

    7268.workflow2.png

    step 3 :

    0334.workflow3.png

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Regarding document template

    Screenshot of the view properties as well please. That is where you need to set the target.

  • Screen one Profile Picture
    310 on at
    RE: Regarding document template

    1830.workflow1.png

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Regarding document template

    Hi,

    It looks the target property is not getting set correctly so CRM couldn't find the entity to populate the date from and hence showing placeholders. You can verify this.

    scaleablesolutions.com/auto-generate-word-template-and-attach-in-email-in-dynamics-crm-2016

    community.dynamics.com/.../how-to-auto-generate-word-templates-using-a-simple-workflow-and-oob-action-in-crm-2016-no-code

    If it still doesn't work, please share some screenshot.

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans