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 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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans