Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

How to use if statements in Word layout?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey guys,

do you know, if it possible to use if staments in the Word layout?

To make fields visible on my reports , I use the XML mapping in the Word layout.

So far it has always been enough to print everything I wanted.

Now I have another situation, because I want to print only specific fields if a certain condition is true or false.

Do you know how to do that in Word layout?

I try something like this:

IF_5F00_Condition.PNG

Unfortunately it is not working, it prints me all the time "Gentlemen", but it has to print "Contact_Greenting", which contains "Lady".

Do you know the syntax?

Do you know to how insert my fields through the XML mapping?

Thank you ;)

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

News and Announcements

Announcing Category Subscriptions!

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

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans