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

Russ Shear
Tera Contributor

This might help:

Thanks for the video. Nice to see a couple of things in there that I have never used - such as stage durations. If you have a way to break into list variables via the 'Get Catalog Variables' flow action rather than having to write custom scripts, can you divulge ?

Thanks, glad it helped. Do you mean how can we get at list variables to use in the flow when using the OOTB action "Get catalog variables"?

Hi Russ,

Thank you for the video. It is explanatory and very well represented.

However, I have a query, My requirement is to set the variable value in RITM for the specific Catalog Item.

I followed your steps but got stuck in step 3 where you used "Update Requested Item Record".

So, I created the trigger as Service Catalog, Action Get Catalog Variable from HR Job Profile (Catalog Item). And selected all the variables there too as you have shown.

Now I would like to set one of the checkbox variable i.e. "ABC" to True.

I tried with Run Script but still no luck.

var nameOfABCVariable = fd_data._1__get_catalog_variables.abc.getName();

gs.log("abc name: " + nameOfABCVariable);

In log, it's printing as undefined.

However, if I used like this then it returns as true even it is not defined by the user in the RITM record.

var nameOfABCVariable = fd_data._1__get_catalog_variables.abc;

gs.log("abc name: " + nameOfABCVariable);

Therefore, could you please guide or help in setting this up or is there any example available then would like to see.