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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

XML Mapping for calculation part in the word template for generating pdf.

(1) ShareShare
ReportReport
Posted on by 6
Hi All
 
I have a question, Can we do percentage calculation and also from the result have to subtract a static value and show the result in the word template which we use for generating pdf in the dynamics 365. Please any guidance video or blog or ideas are appreciated. I was doing R&D, the calculation part is not possible it seems. Please give your inputs. If additional details, I will share it.Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at
    1. Add Calculation Fields to your entity:
       - ‘tmp_Percentage’ (Decimal)
       - ‘tmp_FinalValue’ (Decimal)

    2. Create Power Automate Flow:
      
       When record is selected for document generation
       -> Calculate percentage
       -> Subtract static value
       -> Update tmp_FinalValue
       -> Generate document

    Resources:

    Microsoft Docs: Word Templates

    Note
    : Native Word templates have limited calculation capabilities. For complex scenarios, pre-calculation via Power Automate or plugins is required. Would you like specific implementation details for any approach?

     
  • CU02061946-0 Profile Picture
    6 on at
    Hi Muhammad!!
    Thanks for your reply. But without adding the fields in the crm, by using the formula option in the word Template. Can we achieve this calculation? I tried using the formula option in the template. When I try to generate the word template. Its coming as zero value not as a calculation.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 47

#2
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 32 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans