and more in a single search tool across platforms. Read the announcement here. |
02/07/2023 11:03 PM
Hi,
For new joiner Active Directory creation based on one of customproperty subject of the mail should be changed. Can anyone help how this can be achieved I tried adding
Subject:${if(user?.customproperty30='xxx'){'yyy New Joiner Details'} else{'zzz New Joiner Details'}}
but log says -Error while sending email - Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
Thank you
Solved! Go to Solution.
02/07/2023 11:37 PM
Hi,
Can you try with the below syntax in the SUBJECT field of the email template?
<% if(user?.customproperty30 == "xxx") print "yyy New Joiner Details" else print "zzz New Joiner Details" %>
Thanks.
02/07/2023 11:57 PM
Hello,
Thank you for quick reply. I have tried that didnt work its giving blank subject. Is there any other way?
02/08/2023 12:17 AM
Hello,
I have one more question if I want to put same logic in body will it work?
02/08/2023 01:37 AM
Hi,
Below is working for me when task complete email goes out for New Account.
Looks like there are other conditions in your email template (in TO/CC field) which might be causing issues. Can you try with a simple email template as above to validate the condition?
Thanks.
02/08/2023 01:40 AM
Hello,
Yes you are right I had other conditions. And above solution is working in both subject and body. Thank you.
02/08/2023 03:56 AM
Which email template are you trying and when its getting trigger ?
02/08/2023 11:18 AM
Hi Rushikesh,
They are using the Endpoint Level Email Templates where the mail triggers when the New Account Task completes.
Thanks.