Is there a way to create scripted Flows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 05:23 PM
Is there a way to create a script in replace of a flow? I know you can execute a flow from script, and can write script in flows, but is there a way to just remove the GUI aspect of creating flows entirely? I made up the code below, but something like this is what I'm envisioning wanting to be able to do.
var fl = new Flow(current);
var group = new GlideRecord('sys_user_group');
group.get('name', 'System Administrators');
var app = new flowApproval(fl);
app.group = group;
app.approveReject = 'anyone';
app.ask();
if (app.state == 'approved'){
var task = new flowCatalogTask(fl);
task.insert();
}
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 06:05 PM
I think you answered my question though, it doesn't exist 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 01:07 AM
Hi
"but is there a way to just remove the GUI aspect of creating flows entirely?" - What are you trying to do here?
From the question you have mentioned above, it does not make sense to me at least. Can you elaborate to assist you further.
Regards,
Shloke
Regards,
Shloke