Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Conditional statement in CRM Word template based on field value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear All!

I have an issue with CRM Word template. I have 1 field and i want to Print out template base on field value.

Ex:

- Field: "vtv_day"

-> If vtv_day has value -> Print this value + text "days". vtv_day = 5 -> Display on template = 5 days

-> If vtv_day = null -> hide it

I added field's condition into word template like this:

2018_2D00_11_2D00_23_5F00_11_2D00_41_2D00_42.jpg

-> Fields Codes: IF <<vtv_day>><>"""vtv_day""Days"""

codes.jpg

Then I uploaded template to CRM and print out template. But it didn't display value, just displayed Field codes

like.jpg

Does anyone know what's wrong ? Please give me advice !

Thanks in advance!

*This post is locked for comments

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans