The CreatorCon Call for Content is officially open! Get started here.

Getting empty variables in RITM form

Ishita Shrivast
Kilo Guru

Hello All,

I have created a variable set and few variables in that. Variables are like Requested for, Manager, Location, Department and Company. As you can see , these all are reference type variables. I have created a Script Include and Catalog Client Script to populate these variables based on Requested For selected. Now my script include and client script is working fine and all the values are getting populated, but when I click on Order Now and go to RITM record, except for Requested For variable, none of the variables are getting populated. Because of this, I am not able to create manager's approval through workflow as there is no value in Manager Variable in RITM record.

I have seen some community posts which says variable set's name and variable's name should not be same. And I already have different names for both.

I am attaching an image Of RITM record for reference.

find_real_file.png

Thanks in advance,

Ishita Shrivastava.

25 REPLIES 25

Hi Harshvardhan, I created two variables named as Requested For and Manager. And Manager's value did get populated on RITM form, so I thought of creating other variables also. But then , after creating all other reference variables and making changes in Catalog Client Script, I am again having empty variables on RITM form.

Hi,

please share the script with screenshot?

Did you confirm variable info is stored in this table once user Submits RITM

Table -> sc_item_option_mtom

Regards
Ankur

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

can you add the script also the screenshot? 

AbhishekGardade
Giga Sage

Hello Ishita

Try unchecking "Applies on Target Record" On your catalog client script from you setting all details you mentioned.

find_real_file.png

 

Please mark as Correct Answer and Helpful, if applicable.
Thank You!
Abhishek Gardade

 

Thank you,
Abhishek Gardade

Hi Abhishek, I tried what you suggested, but still it's not woring.