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

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Conditional containing literal string in receipt template not working

(0) ShareShare
ReportReport
Posted on by

We're using an add-in for credit card processing, so we've got our actual credit/debit card tender types set to "other".  So, to check to see if a card is used, I updated the XML template as follows.  However, this conditional statement never evaluates to true, even though
<ROW> Tender.Descriptor.Description </ROW> evaluates as "Pinpad Amex" 

<IF>
<CONDITION> Tender.Descriptor.Description = "Pinpad Amex" </CONDITION>
<THEN>
<ROW> "Card: " Tender.AccountNumberMasked "|" </ROW>
<ROW> "Auth: " Tender.ApprovalCode "|" </ROW>
<ROW> "Amex test" </ROW>
</THEN>
</IF>

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Conditional containing literal string in receipt template not working

    you could also try the following condition:  Tender.Descriptor.TenderType = tenderOther

    The addin might not populate Tender.AccountNumberMasked or Tender.ApprovalCode to be able to print.   Some addins do , some don't because they provide these values in custom variables with a custom receipt layout.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans