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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2016: MS WORD Document Template using IF statement (XML Mapping)

(1) ShareShare
ReportReport
Posted on by

Hi All,

Please provide the possible solution for this issue.

I have a Word Document Template (MS CRM Dynamics 2016) but I need to include a IF statement to check if the value of new_optabloodgroup has a "+" or "-". It seems that I can not link it using the XML Mapping. Does XML Mapping works with the QuickPart tools in MS WORD?

Logic: IF new_optabloodgroup contains "+" shows "Positive" ELSE "Negative".

2287.Picture1.png

Thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    PS Profile Picture
    23,577 on at

    Try this:

    crmtipoftheday.com/.../conditional-values-in-word-templates

  • Community Member Profile Picture
    on at

    Hi Prashant,

    I have tried using this method but it would not work.

    Thanks.

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks Prashant Shukla. Its work.

  • Community Member Profile Picture
    on at

    Familiar name and familiar report design. LOL. Its work Mr. Mohamm.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    You can create  a calculated field on the entity and set the value based on your above condition and then use that field in your template

    docs.microsoft.com/.../define-calculated-fields

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans