how to add approver in workflow depending on selection of user of a field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 04:28 AM
how to add approver in workflow depending on selection of user for a field like lookup select box?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 04:50 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 05:40 AM
i tried this way but its not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 06:02 AM
Hi Aritra,
Can you send screen shots of the workflow and the activity details?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 06:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 06:10 AM
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.