web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Conditional statement in an email

(0) ShareShare
ReportReport
Posted on by 33

Hello, 

I am trying to amend a conditional statement we use in an email linking to the contact record partner usage. The current conditional statement is correct and working, but we now have 2 redemption codes with the same provider, and I only want to show 1 of the redemption codes in the email. 1 code is status is active, the other one is inactive. 

Does anyone know if this is possible? 

This is the current conditional statement which works: 

{{#each contact.bl_partnerusage_contact_bl_contactid}}
{{#if (eq this.bl_providername 'Provider')}}
{{this.blf_redemptioncode}}
{{/if}} {{/each}}

Can this be amended to only show 1 of the codes even if there are 2 codes listed as the same provider?

Thanks, Taggie 

I have the same question (0)
  • Verified answer
    Haig Liu Profile Picture
    Microsoft Employee on at

    Hi Taggie,

    Is the code status field already in the entity?

    I think the key is to put the code state into an entity that can then be filtered using two consecutive if conditional statements.

       

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2026 Season 1

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 49

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 33 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans