Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Multi row variable set values not saving after modify in Sc_task2

pavana3
Tera Expert

Hi Team,

anyone know how to solve this problem I have multi row variable set with 3 fields in this 2 fields are check box type default displaying 'false' Task2 added this Multi row variable and come to catalog task i have modified the check box values and task closed after open the task2 its not stored changed check box values. for this i tried Business rule but its not working for more details find the screenshot if you know solution please guide me.

 

Thank you 

PB

4 REPLIES 4

Brad Bowman
Kilo Patron
Kilo Patron

I'm not following, especially when looking at the screenshot which shows 'true' values.  You don't want or need a Business Rule to update a variable value.  Wherever you update a variable - whether it's inside a multi-row variable set, single row variable set, or neither - on a request form, RITM, or Catalog Task, the same value will show on the other forms.  If you are not seeing the boxes checked when you edit a row again, ensure you do not have any Catalog Client Scripts or Catalog UI Policies that are affecting these variable values.  

Ankur Bawiskar
Tera Patron
Tera Patron

@pavana3 

if agent is updating the MRVS in catalog task and saving the record then the MRVS should get updated.

how are you updating that record?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Thank your replay ... @Ankur Bawiskar  and @Brad Bowman  see the below steps what i did and what is not working .

Step1 : In Catalog form one variable List collator type ( work_pac ) here i am selecting Multiple names.

Same catalog form i have Multi row variable set - here 3 variables one is single line text  and 2 are check boxes 

whatever i will select List collator type ( work_pac ) same should display in multi row one of variable single line text  with rows and columms 

using script include and on change client script  -- successfully working 

Step 3: multi row variable set should apper only Task 2 and Task 3 so i have enable only for Task  --- this is also working fine 

Step 4 : Catalog form , RITM  hidden this multi row variable set 

Step 5: List collator variable should be read only for RITM and TASK  only enable catalog form ..... This is also fine 

Upto this all steps working fine .

Step 6: <Problem in this step>

sc_task 2 displayed with catalog form whatever submitted  for example 

List collator  type field value  --- CAD

multi row variable text field  .... CAD , Check box 1  - false , check box 2 - false   (This check box default values only showing 'False')

Now I am  Edited row for check box 1 changed to True , Check box 2 - also changed to True then saved in Multi row 

Same Task 2 - state changed to Closed complete  , mandatory fields filled and Updated the form .

again opened Task 2 and seen multi row variables  this check box  showing default values like False instead of True.

@Brad Bowman    same time other catalog form variables also modified in sc_task which are single row variables along with multi row  thos are normally updated with new changes except multi row variables. I have tried multiple ways i have seen sc_multi_row_question_answer   this table also values are saved with parent table RITM number .

In Task only stopping me 

Note this multi row variable set name install_software this is hidden for catalog form, RITM Task 1 and TASK 4, TASK 5.  only available TASK 2 and TASK 3.

 

please guide me ... for more details see the screen shorts below. for sc_task2

 

Thank you so much for respond my issue i am waiting for solution. 

Thanks & Regards,

PB

Hi @Ankur Bawiskar  and @Brad Bowman  

 

In my pdi i have created list collator , multi row variable set  same logic whatever selected in List collator variable its displating in Multirow variable set single text but check boxs if edit and save with true also again changes to false only ... here no hidden variables no Ui policy only used script include and onchange client script   check boxes always diplaying false if i will changes to true and save also... any solution for my issue please