How to auto create Standard Change Request once the Catalog Request is submitted

Arjun Reddy Yer
Tera Guru

How to auto create Standard Change Request once the Catalog Request is submitted and parlelly should create SCTask

and as per changes in SCTask the Standard Change Request Status also need to be change as mentioned in below screen shot. Can anyone suggest me best way to solve this issue. If via flow designer we can achieve it means what are the steps need to follow @Ankur Bawiskar @Community Alums @asifnoor @BharathChintala @Allen Andreas @Aman Kumar S @mattystern @Saurav11 @Ahmmed Ali 

yerasumalli_0-1677814942122.png

 

2 ACCEPTED SOLUTIONS

@Arjun Reddy Yer create a flow as below ( change approvals or assigments or additionak field mapping as per your requirement) I have sent screen shots how to set scheduled state when assigned hope you can do rest

 

BharathChintala_0-1677833283464.pngBharathChintala_1-1677833300355.pngBharathChintala_2-1677833313579.pngBharathChintala_3-1677833332163.pngBharathChintala_4-1677833344066.pngBharathChintala_5-1677833360267.pngBharathChintala_6-1677833373868.png

 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

View solution in original post

Create flow same as below below flow and you can modify if required. Verify Business rules/change process in your instance, it may restrict change state update from flow or workflow. If there are restrictions modify flow accordingly.

SumalathaY_0-1677883198479.pngSumalathaY_1-1677883219031.pngSumalathaY_2-1677883236813.pngSumalathaY_3-1677883252480.png

Thanks & Mark Answer Correct/Hit Thumbs Up. If my inputs help you to achieve what you are looking.

Sumalatha Y

View solution in original post

8 REPLIES 8

Sumalatha Y
Kilo Guru

Create a flow and link flow to catalog item. In flow, you can add actions to create catalog task and standard change and you can add steps to change  task/ change state as per your requirement.

but need to automate the actions so can you tell me what are the steps to follow 

Create flow same as below below flow and you can modify if required. Verify Business rules/change process in your instance, it may restrict change state update from flow or workflow. If there are restrictions modify flow accordingly.

SumalathaY_0-1677883198479.pngSumalathaY_1-1677883219031.pngSumalathaY_2-1677883236813.pngSumalathaY_3-1677883252480.png

Thanks & Mark Answer Correct/Hit Thumbs Up. If my inputs help you to achieve what you are looking.

Sumalatha Y

can you please help me as already Workflow has been attached to the Catalog Item so instead of creating Flow Designer as I'm not getting proper result in Flow Designer so can I create Business Rule for the process. Below mentioned screen shot is the existing workflow @Ankur Bawiskar @Sumalatha Y @BharathChintala @asifnoor @Community Alums @Saurav11 @mattystern @Ahmmedali @Aman Kumar 

yerasumalli_0-1678153970431.png

below mentioned screen shot is the flow designer which I was created

yerasumalli_1-1678154030488.pngyerasumalli_2-1678154057385.png

the actions and logics that I had used in Flow Designer are pasted in below mentioned screen shots 

yerasumalli_0-1678158074175.png

Script in Approval Field as the RITM should go to the Requester Managers Group:

 

var cmpny = current.variables.company;
var gr_app = new GlideRecord('u_fwd_data_mapping');
gr_app.addQuery('u_type', 'Firewall Rule Company');
gr_app.addQuery('u_core_company', cmpny);
gr_app.query();
if (gr_app.next()) {
var cmpny_group = gr_app.u_approval_group;
answer = ifScript(cmpny_group);
}

function ifScript(cmpny_group) {
var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group", cmpny_group);
gr.addQuery("user", current.variables.requested_for);
gr.query();
if (gr.next()) {
return 'yes';
}
return 'no';
}

 

yerasumalli_1-1678158273299.pngyerasumalli_2-1678158307725.png

var cmpny = current.variables.company;
var gr_app = new GlideRecord('u_fwd_data_mapping');
gr_app.addQuery('u_type', 'Firewall Rule Company');
gr_app.addQuery('u_core_company', cmpny);
gr_app.query();
if (gr_app.next()) {
var cmpny_group = gr_app.u_biso_approval_group;
answer = ifScript(cmpny_group);
}

function ifScript(cmpny_group) {
var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group", cmpny_group);
gr.addQuery("user", current.variables.requested_for);
gr.query();
if (gr.next()) {
return 'yes';
}
return 'no';
}
 
yerasumalli_3-1678158409962.png
task.assignment_group ='34d4bbf5db1bc4106f13e5951b9619ba';// GTS-INF-NETWORK-L2-SSC1
task.priority = current.variables.priority;