Move change request state from review back to assess

Elias9
Kilo Contributor

Hello SN Community,

I hope someone will help me with this.

I am new to SN but really learning.

I need step by step instruction as to how  move back  a change request state from Review State to Asses state. Becuase the change failed. Is it possible??? If so please provide step by step as I am new to SN environmnet.

 

Thank you SN community.

Appreciate your help.

 

1 ACCEPTED SOLUTION

okay got it. If it is just for one change request, then you do not need to follow the above steps as my thought was you need to setup a functionality for future change request as well.

For one change Request, you need to run a Background script and that should work for you.

Navigate to Background Script module as shown below:

find_real_file.png

Copy paste the below script and replace in line number 2 the correct sys id of the change request record for which you want to do this change.

var gr = new GlideRecord('change_request');
gr.get('e8f816d5c0a801640131b8101100744c'); //Replace sysID with your ChangeRequest SysID
gr.state = -4;
gr.setWorkflow(false);
gr.update();

Please try this in your Non Prod instances first before executing it in Production, just to be on a safer side.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

5 REPLIES 5

Elias9
Kilo Contributor

Hi Shloke,

You are a legend. Thank you for your help. your solution worked. Fantastic stuff.

 

appreciate your help.

Elias. 

 

I really want to learn the coding for SN and I am not sure where to start as a beginner. do you know where i can start on this Journey.?????

Thanks again.