- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 03:36 AM
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
2. try to [Create Standard Change Request] action & Result
3. Custom Action with script
Result of 3.
is any idea create Standard Change Request with Flow Designer? (hopefully with standard chagne template)
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 11:44 PM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 06:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 06:26 PM
Hi Mahak
I've tried OOTB Action (#2 above) but it does not work. Am I missed something?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 11:44 PM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2024 12:38 PM
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!