how to add approver in workflow depending on selection of user of a field

aritra23
Kilo Contributor

how to add approver in workflow depending on selection of user for a field like lookup select box?

14 REPLIES 14

Typically the best way to get the value from your field is to use the getValue() method as you suggested.



In the workflow approval, you need to save the value to the 'answer' variable, which is typically and array of sys_ids, so please follow my instructions and review the comments in the Script field of the user approval workflow activity (you need to check the Advanced checkbox first to make the script field appear.)



Creating a Workflow - ServiceNow Wiki


Workflow Concepts - ServiceNow Wiki  


i tried this way but its not working.


Hi Aritra,



Can you send screen shots of   the workflow and the activity details?


i want to send a approval request to the user that will be selected in the lookup select box name 'choose manager'(variable).


Iam making a workflow, there i want to write the advanced script.





Capture.JPG


Hi Aritra,



Due to limitations in what service I can offer in the community, this goes beyond what I can offer for support here. I recommend you engage with professional services from ServiceNow or one of our partners to complete this requirement. I'm sorry I did not have an instance answer for you this time.