Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Regarding document template

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

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 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
    Screen one 310 on at
    RE: Regarding document template

    please provide some solution

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

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

  • Screen one Profile Picture
    Screen one 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
    RaviKashyap 55,410 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
    Screen one 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
    RaviKashyap 55,410 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
    Screen one 310 on at
    RE: Regarding document template

    1830.workflow1.png

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans