approver to edit a field on which the workflow is running

jkhanddh
Tera Contributor

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.

2 REPLIES 2

Pradeep Thipani
Mega Sage

Hi @jkhanddh ,

 

You can achieve using any one of the following two options:

 

1)Using the Set Values node

PradeepThipani_0-1727767780464.png

 

 

2) Using Run Script Node:

Use below my code as example and change accordingly

 

PradeepThipani_1-1727767862915.png

 

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();
}

 

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep

Hi @Pradeep Thipani ,
It is dynamic in nature and determined by approver only, so cannot keep it predefined