How to trigger an email notification based off a specific variable question choice?

fpuzon
Tera Contributor

Hello everyone,
Is there a way to trigger an email notification based off a specific variable?   What I am trying to do is change the content of a notification based on a specific variable that is selected on a form.     Currently we have an email notification that uses the same content for ALL 'Requested Items'.   Here is the conditions for this notification:

Approval Requested Item.jpg

What I would like is to be able to send a different notification based off a certain variable that is selected.   The reason for this is because there is specific content I need the approver user to read before they just hit approve.

I tried to see if I could dot.walk to that variable in the conditions, but that didn't seem to work.   Is there another way to accomplish this?

Here is a snap shot of the workflow that acquires these approval notifications.   The two approval user activities you see highlighted in yellow currently trigger the same notification.   I need to the second one you see 'Direct Sponsor' to be able to receive a different notification based off of a specific variable that is chosen on the form.

Approval Workflow.jpg

I hope this makes sense.   Any help would be appreciated.   Thanks everyone.

Fred

3 REPLIES 3

JJ1
Kilo Guru

Fred,



Why cannot you try event to trigger a new notification,Make a copy of the existing notification with a new event name,Increase its weight.Trigger event from workflow and pass the required group/person as parameters.


fpuzon
Tera Contributor

Hi Jeevan,
Thanks for chiming in.   That actually did not cross my mind.   Would this event go before the approval activity or after?   Essentially we still want to be able to see weather the approval was accepted or rejected on the requested item.





Thanks,
Fred


You may want to consider triggering the event from the BR that triggers approvals. The "Approval Events (Task)" business rule has logic in it to trigger change approvals versus catalog approvals. You should be able to add logic to trigger a custom event based upon the conditions of the record including the variables. I would make a copy of it and edit the copy and disable the original so that you can go back if necessary.