The CreatorCon Call for Content is officially open! Get started here.

How To Trigger Script Include Based on a catalog item

Jasmene Nettles
Tera Contributor

 I am trying to use flow designer to create a flow to trigger a script include. How can I do this?

ultimately a user requests a report for a specific building & date range. Once they click submit I need a report sent to them. My thought was once they click submit a flow associated with the catalog item would call the script include to send them the report.

var scriptInclude = new amcOnDemandReport();

var trigger = scriptInclude.updateReport(current);

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

You can create a custom action if you want to house this or just use a script step and execute the code as needed.

You can associate this flow to the catalog item, or call it as a subflow, etc.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

You can create a custom action if you want to house this or just use a script step and execute the code as needed.

You can associate this flow to the catalog item, or call it as a subflow, etc.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

What would I use for inputs and outputs?