Is there a way to create scripted Flows?

PB20201617
Kilo Contributor

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();
}
6 REPLIES 6

I think you answered my question though, it doesn't exist 😞

shloke04
Kilo Patron

Hi @PB20201617 

"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

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

Regards,
Shloke