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:30 AM
Hi Aritra,
You need to checked the advanced checkbox in your User approval and use a script to get the value of the field. Let's call it a reference field "u_user".
The script might look something like this:
answer = [];
answer.push(current.getValue('u_user'));
// Untested
Reference:
http://wiki.servicenow.com/index.php?title=Approvals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 04:38 AM
how to know the name of the variable?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 04:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 04:46 AM
var k= current.getValue('fieldname') should return the value of the field right?