- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 09:21 AM
There is a field on the change form called Requested by (requested_by).
In the workflow I need to have manager's approval . in fact manager is requested by's manager.
This is my code for manager approval which is wrong and it gives error:
I also tried approver=current.variables.requested_by.manager;
Any ideas?
Solved! Go to Solution.
- 12,757 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 10:55 AM
Hi Soni,
Can you please use the below script and let me know. I believe this is from one of Change request workflow. Please let me know if you find any issue.
var answer = [];
answer.push(current.requested_by.manager);
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 09:30 AM
Hi Soni,
Just use the script as below:
var approver = current.requested_by.manager.toString();
answer = [];
answer.push(approver);
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 10:37 AM
Hi It didn't work . still i get errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 10:55 AM
Hi Soni,
Can you please use the below script and let me know. I believe this is from one of Change request workflow. Please let me know if you find any issue.
var answer = [];
answer.push(current.requested_by.manager);
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 11:31 AM
Thanks! it works!