Flow Designer for Service Catalog

Ben42
Tera Contributor

Hi All,

I am new to flow designer, I would like to know,

how do we trigger flow designer when a request is submitted from catalog item and

how to map fields from variables to fields on the RITM form and

How to bring all variables of catalog item that is submitted to Variables editor on RITM form ?

 

Thanks,

Ben

 

 

1 ACCEPTED SOLUTION

DScroggins
Kilo Sage

Hi Ben,

Once you activate the Flow Designer / Service Catalog Plugin you will have a new trigger option for Service Catalog:

find_real_file.png

 

After you create and save the flow with "Service Catalog" trigger you can then head to your Catalog Item and add the "Flow" field to the form. Make sure there are no values in the "Workflow" or "Execution Plan" fields then select your newly created flow in the "Flow" field:

find_real_file.png

Once you are back in your Flow you can add the action "Get Catalog Variables" and configure it to select your catalog item. Once your catalog item is selected in the "Template Catalog Item" you can then select the catalog variables to utilize in the flow like so:

find_real_file.png

 

After which the variables will be available in the "Data" section of the flow:

find_real_file.png

 

When the catalog item is submitted by an end user the variables will automatically be associated to the RITM and will show in the variable editor.

 

Hope this helps.

 

--David

View solution in original post

23 REPLIES 23

Erik Gunther2
Kilo Guru

How do you update a True/False field in a table with the Yes/No request item's variable? It appears the Yes/No variable returns a string instead of a boolean, which is what is expected by the True/False field value in a table.

Where are you trying to update the table field: flow, BR, Script Include, etc? 

Using a very basic example you can do something like:

var isTrue = (current.variables.yesno == 'yes')? true : false;

 

Replace the variable 'yesno' with the name of your actual yes no variable then you can use the 'isTrue' variable to update the True/False table field.

I did something similar, but the issue was "where" to do that. Here is what I ended up doing, which works well.

 

I created a New Action called "Yes/No to Boolean". It includes a script much like what you showed. Then after retrieving the catalog variables, I convert the Yes/No catalog variable's value (which is a string) to a boolean.

 

My script was: 

(function execute(inputs, outputs) {
// ... code ...
var true_false = (inputs.yes_no == 'Yes');
outputs.true_false = true_false;
})(inputs, outputs);

 

find_real_file.png

find_real_file.png

 

dillontjd
Giga Contributor

We are currently running the Kingston Release, is this plugin in London or Madrid?

As per Docs it's released with Madrid.

-Anders