Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Add short description in RITM by adding the values or filled by the user in a catalog form variable

Aakhiil
Tera Expert

Hi Experts,

I have one variable called " Request type" when ever user submit the item. variable value need to be populate on RITM "short description" . 
I have written this script in flow design but it won't work. any one please help me on this.

Note: item short description is mandatory so already given some content.But now here as per my requirment variable value only populate on RITM short desc level.

Aakhiil_1-1682941648454.png

also i tried this script 
current.short_description= current.variables.request_type;

Aakhiil_2-1682942089929.png


Any help will be appriciated.

Thanks in Advance


1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Aakhiil 

why to update the RITM in GET Catalog variables step?

you can use update record action and set the short_description like this

No scripting required; just drag and drop the Pill

AnkurBawiskar_0-1682951394254.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

14 REPLIES 14

Yes @Ankur Bawiskar  I am not able to get variables from get catalog item variables.

Aakhiil_0-1683022867379.pngAakhiil_1-1683022923365.png

Flow alson attached in item.

Aakhiil_2-1683023179040.png

And I tried with this script as well.

Aakhiil_3-1683023324116.png

Thanks.

@Aakhiil 

did you add the variables in the Get Catalog variable step?

What happens when you click the data pill for setting the short description field?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar 
In Get Catalog Variables section I am unable to get the variables please see the screenshot 

Aakhiil_0-1683032631506.png

Through Catalog builder actually item is created and the flow approvals are also triggering through variables. where in variables  default value team is keeping the group sysid 

Aakhiil_1-1683033349450.pngAakhiil_2-1683033364020.png

 



@Aakhiil 

for the Get Catalog Variables set you need to select the catalog item also

It should be visible, I have used it.

Did you try to create the step again?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar 
Appreciated. Thanks for your help.