Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Conditional statement in an email

(0) ShareShare
ReportReport
Posted on by 15

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 

  • Verified answer
    Haig Liu Profile Picture
    Haig Liu Microsoft Employee on at
    RE: Conditional statement in an email

    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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans