Approval activity is not being triggering approval notification for User selected on Catalogue form.

ANIL KUMAR10
Tera Contributor

Hi All,

 

We have created a workflow to trigger approval mail to the user selected on Catalogue item, but the approval mail being triggers for the user in Test instance, when its comes to Live environment approval activity is being passing however approval mail is not triggered and record(sysapproval_approver_list) is not getting created in system

Can anyone suggest, on this what could be the reason behind this...where it is triggering the notification to the user when selection is different options on form
attached screenshot of approval activity code, where it is causing issue with 10th line in code..

3 REPLIES 3

Mark Manders
Mega Patron

Are you triggering the notification in the workflow or is it triggered by the approval creation? Because if it's the last one, no record, means no notification.

For the record creation: did you check on the variables? Are these without any spelling issues? Do you have the variables filled on the form?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi Mark,

 

Yes, we have a variable to fill the User record which is reference to User table, as shown in screenshot "superviser_user_id" is User id field of User selected in variable. 
And approval notification is triggering from approval activity in workflow, and four variables showing in below screenshot code is User Id field values for different selection on form...
'superviser_user_id' is for particular selection on form, and as you said if it is last option...but the same configuration working in lower environment.
Approval activity section code.png

 

Thank you,

Anil

Musab Rasheed
Tera Sage
Tera Sage

Try adding toString() function and check once.

answer.push(current.variables.variable_name.toString());

Please hit like and mark my response as correct if that helps
Regards,
Musab