Editable variables in ritm

User_267
Tera Contributor

In ritm I have two variables called  'A' and 'B'.

So when the request is submitted one catalog task will be created this catalog task members will enter something in variable 'A'( which is editable on ritm) , and then they closes there catalog task.

But after closing the catalog task the text which they entered in RITm is not there. It disappeared.

What to do for this?

 

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @User_267 

 

May i know, why the fulfiller is changing or entering value in Variable from backend, it is not a good use case.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Oya Orhan
Giga Guru

Hi @User_267 ,

There is actually one record to keep the variable and its value for a ritm and its tasks. That's why whether you update the variable on task, or you update the variable on the ritm, you update the same record.

If you examine the related tables, you may have more information:

sc_item_option: The table which store the variable and its value
sc_item_option_mtom: m2m table which relates ritms to sc_item_option record
sc_item_variables_task: m2m table which relates catalog tasks to sc_item_option record
 
So instead of trying to keep values of a variables different in task and ritm, it would be better to add a separate variable which is visible only catalog task. 
 
If my post helped you, please click the accept solution button and hit the thumbs up! Thank you!
Oya