approver to edit a field on which the workflow is running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2024 12:01 AM
Hi Everyone,
I am creating a workflow for a record producer and I want that if approver rejects the approval then he should be able to change a field value of that Record producer. How can this be achieved. Needed your valuable suggestions. (would be helpful if you can add screen shots)
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2024 12:31 AM
Hi @jkhanddh ,
You can achieve using any one of the following two options:
1)Using the Set Values node
2) Using Run Script Node:
Use below my code as example and change accordingly
var prbTask = new GlideRecord('problem_task');
prbTask.addQuery('problem',current.sys_id);
prbTask.orderBy('sys_created_on');
prbTask.query();
if(prbTask.next()){
prbTask.state = '151';
prbTask.close_code = '';
prbTask.update();
}
Regards,
Pradeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2024 12:41 AM
Hi @Pradeep Thipani ,
It is dynamic in nature and determined by approver only, so cannot keep it predefined