how to get the model name catalog item from to the short description for SCtask ?

chercm
Mega Sage

i have created a catalog item form and attached the flow designer to create SCtask ticket but i cannot the model name to be populated on the short description field 

 

what  should i select ?

 

Screenshot 2023-10-06 at 6.07.53 PM.png

Screenshot 2023-10-06 at 6.08.26 PM.png

1 ACCEPTED SOLUTION

Hi @chercm 

 

There is also a another way :

 

Step 1 : Create flow variable 

 

VishalBirajdar_0-1696589377334.png

 

VishalBirajdar_1-1696589419977.png

 

It will look like this in data picker

VishalBirajdar_3-1696589544682.png

 

 

Step 2 : Create flow logic "Set flow variables"

 

VishalBirajdar_2-1696589488084.png

 

Use Toggle script to set the value (Highlighted in blue)

In script  write below code 

 

var model = fd_data.trigger.request_item.variables.<your_variable_name>;
return model;

 

VishalBirajdar_5-1696589659716.png

 

Step 3 : Drag & drop the flow variable in Short description of Catalog task 

 

VishalBirajdar_6-1696589806758.png

 

 

Note : for demo I have used "RITM" table.

 

 

 

 

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

16 REPLIES 16

Vishal Birajdar
Giga Sage

Hi @chercm 

 

You can use OOTB "Get catalog variables" action.

 

Below link might help you:

 

https://www.servicenow.com/community/developer-articles/access-ritm-variables-using-flow-designer/ta...

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Hi @chercm 

 

There is also a another way :

 

Step 1 : Create flow variable 

 

VishalBirajdar_0-1696589377334.png

 

VishalBirajdar_1-1696589419977.png

 

It will look like this in data picker

VishalBirajdar_3-1696589544682.png

 

 

Step 2 : Create flow logic "Set flow variables"

 

VishalBirajdar_2-1696589488084.png

 

Use Toggle script to set the value (Highlighted in blue)

In script  write below code 

 

var model = fd_data.trigger.request_item.variables.<your_variable_name>;
return model;

 

VishalBirajdar_5-1696589659716.png

 

Step 3 : Drag & drop the flow variable in Short description of Catalog task 

 

VishalBirajdar_6-1696589806758.png

 

 

Note : for demo I have used "RITM" table.

 

 

 

 

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

@Vishal Birajdar the short description seems not recognised 

 

chercm_0-1696591725644.png

chercm_1-1696591802523.png

 

 

chercm_2-1696591886862.png

 

Hi @chercm 

 

Is Model variable referencing any table....??

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates