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 :
Customer experience | Sales, Customer Insights,...
Unanswered

D365 Word Template - conditional IF statement using XML mapping fields

(0) ShareShare
ReportReport
Posted on by 330

I have created a new Word Template and want to use a conditional IF statement from within a table - i.e. a repeatable field - to print field A or field B (if field A is empty).

For some reason Word doesn't want to play ball.

My statement looks something like the following:

{IF productdesc = "" productcat productdesc}

In essence I want to print field productdesc unless it is empty, in which case I want to price productcat

I've tried putting my field names in speech marks but that makes no difference

Is this syntax possible using XML fields? Maybe there a NULL or EMPTY() condition I need to check for? 

Any help would be much appreciated.

I have the same question (0)

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans