Change - If Change is rejected, we want it to go back to Closed-Rejected?

Nicholas Hromya
Mega Guru

How can we set when a change is rejected, we want it to go to "Closed-Rejected" status, it currently goes to "New".

 

Seems this is in Flow, but i am not sure.

Thanks

Nick

 

 

 

2 REPLIES 2

Shashank_Jain
Kilo Sage

@Nicholas Hromya ,

 

Hi,

Here is how you can do this. 

After reject notification, in your WF, add run script activity.

current.setWorkflow(false); //This will disable the BR that is restring the state move.
current.close_notes = "rejected";
current.close_code = "unsuccessful";
current.state = 3;

 

Connect Reject notification -> Run script -> End.

 

Hope it helps!

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

@Nicholas Hromya , If this was helpful, Can you please mark it as accepted as solution.

That would be appreciated.

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain