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)

Conditional statement in CRM Word template based on field value

(0) ShareShare
ReportReport
Posted on by

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

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

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)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans