How to call a script include in Flow Designer

Anderson_R
Tera Contributor

Hi SN Community, 

I'm working on converting a business rule into a flow. In the BR, a script include is called like so:

(function executeRule(current, previous /*null when async*/) {

	// Call the script include
	new global.u_AttachmentUtils().copyAllAttachmentsToMe(current.parent.sys_class_name.toString(), current.getValue('parent'), current);

})(current, previous);

I need the flow to call the same script include. I've seen posts suggesting creating a custom action with script step. However, I don't see the custom action as an option. 

Any help is greatly appreciated, thank you! 

Anderson_R_0-1713816281796.png

 

1 ACCEPTED SOLUTION

Murthy Ch
Giga Sage

Hello @Anderson_R 

Custom action means you just need to create a brand new "ACTION" and call it in your FLOW.

Hope it helps.

MurthyCh_0-1713816963738.png

 

Thanks,
Murthy

View solution in original post

2 REPLIES 2

Murthy Ch
Giga Sage

Hello @Anderson_R 

Custom action means you just need to create a brand new "ACTION" and call it in your FLOW.

Hope it helps.

MurthyCh_0-1713816963738.png

 

Thanks,
Murthy

Anderson_R
Tera Contributor

This helps a lot, thank you!