Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

Flow Designer: 'Create Catalog Task' - need help to script the short description

danielalexa
Tera Contributor

Hi,

 

First time posting - I am looking for guidance how to correctly script a custom short description that shall pull the variable display text values correctly.

 

The variables: for simplicity renamed to "var1" and "var2"

 

What I have right now is currently throwing "undefined" errors:

 

return "License Request - " + fd_data._1__get_catalog_variables.var1.getDisplayValue() + " - " + fd_data._1__get_catalog_variables.var2.getDisplayValue() + " License";
 
This shall currently create tasks correctly yet show as "License Request - undefined - undefined License"
1 REPLY 1

prajaktakha
Tera Expert

Hello @danielalexa ,

 

With flow designer you can achieve this use case :

Suppose you have a catalog item called License Request with these variables:

 

Variable Type Example selected value
softwareReferenceMicrosoft Office
license_typeSelect BoxPremium

 

Step 1: Trigger

Create/open your Flow.

Use:

Trigger → Service Catalog

prajaktakha_0-1787689167053.png

 

Step 2: Get Catalog Variables

Add an action:

ServiceNow Core → Get Catalog Variables

 

prajaktakha_1-1787689215676.png

 

Step 3: Create the Catalog Task

Add:

ServiceNow Core → Create Record

prajaktakha_2-1787689274041.png

You can customize the short description then after the submission of catlog item output will look like this:

prajaktakha_3-1787689339276.png


If you found this Helpful please Accept the Solution and mark it as Helpful.

 

Thanks,

Prajakta