Setting an Email Subject Label based on a USERSETTING

We have a client using several apps and need to apply a label to the subject line of emails generating from key apps so they know if the email came from a TEST app vs. their LIVE app.

I’m placing the following expression in USERSETTINGS() to place it into the subject line but I’m having trouble with the syntax. Can someone assist ?

IF(CONTEXT(AppName)=“TST_USA_Receiving-539632”,"-TEST RECEIVING APP","")


Put the expression inline, rather than using a user setting.

2 Likes

Yes thanks Steve. I’ve had some success inserting a vc into each of the tables requiring the label - was hoping for a more direct method :slight_smile:

Thanks again

1 Like

Alternatively, use the user setting, but enclose it in << and >>:

<<USERSETTINGS(version_flag)>>
3 Likes

Woo hoo! That worked! You’re the best! Thanks Steve

image

3 Likes