- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2019 01:37 PM
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
Solved! Go to Solution.
- Labels:
-
Best Practices

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2019 01:58 PM
Hi Ben,
Once you activate the Flow Designer / Service Catalog Plugin you will have a new trigger option for Service Catalog:
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:
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:
After which the variables will be available in the "Data" section of the flow:
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 11:49 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 01:41 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 01:53 PM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2019 04:32 PM
We are currently running the Kingston Release, is this plugin in London or Madrid?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2019 12:19 AM
As per Docs it's released with Madrid.
-Anders