Can't created Standard Change Request via Flow Designer

Hyohyeon Kim
Tera Contributor

Hi Experts

I've try to create Standard Change Request via Flow Designer, but change type is ignored.

1. try to [Create Record] action & Result

find_real_file.png

 

2. try to [Create Standard Change Request] action & Result

 

find_real_file.png

 

3. Custom Action with script

find_real_file.png

Result of 3.

find_real_file.png

 

is any idea create Standard Change Request with Flow Designer? (hopefully with standard chagne template)

 

1 ACCEPTED SOLUTION

Hyohyeon Kim
Tera Contributor

This issue was resolved internally. I found that I could create a Standard Change Request by creating a custom action like the one below.

 

(function execute(inputs, outputs) {
  var chg = new GlideRecord("change_request");
  var chg_model = new GlideRecord('chg_model');
  chg_model.get('name', 'Standard');

  chg.initialize();
  chg.applyTemplate(inputs.parameter);
  chg.chg_model = chg_model.sys_id;
  chg.insert();
  outputs.variable = chg
})(inputs, outputs);

 

View solution in original post

4 REPLIES 4

Mahak2
Kilo Guru

Hello Can you please use the OOTB Action"Create Standard change" under ITSM Spoke.

Through that we can easily create Standard Change.

 

find_real_file.png

Let me know if you have any other queries.

Please mark my response as helpful/Correct if it solved your query.

 

Thanks

Hi Mahak

I've tried OOTB Action (#2 above) but it does not work. Am I missed something?

 

Thanks

Hyohyeon Kim
Tera Contributor

This issue was resolved internally. I found that I could create a Standard Change Request by creating a custom action like the one below.

 

(function execute(inputs, outputs) {
  var chg = new GlideRecord("change_request");
  var chg_model = new GlideRecord('chg_model');
  chg_model.get('name', 'Standard');

  chg.initialize();
  chg.applyTemplate(inputs.parameter);
  chg.chg_model = chg_model.sys_id;
  chg.insert();
  outputs.variable = chg
})(inputs, outputs);

 

Brian Luchies3
Tera Contributor

If you need to create a Standard Change from Flow designer use the action "Create Record".  It will go to Normal if you only set the type to "Standard" but if you set "Type" AND "Model" then it will be a standard change and you can set the Standard Change Template version field to your Standard Change Template and bam! 

 

Hope this helps all who are trying this!