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

Updating variables on RITM should update the respective mapped fields on RITM and respective generated task's related fields.

Snehal2
Kilo Guru

Hi Developers,

Requirement:

Note: I have bought variables in the task table as well by setting the globe field (of variables) to true.

When I update the variables present on the RITM / task , the respective fields on the Request, RITM, and task should be updated. Visa versa should happen. If form fields are updated, same should reflect on respective variables in variables section.

Eg: When I update the requested for or CI or product in the variables section, the updation should happen on Request, RITM, and task as well. 

Can any one suggest me how to achieve this.

 

Regards,

Snehal Madakatti

3 REPLIES 3

AirSquire
Tera Guru

Hi Snehal,

I would not recommend implementing this functionality because of the following reasons:

  • Variables to Request / RITM / Catalog Task:
    You have to use a glideajax call to the server and update the corresponding RITM and then the request and catalog task, this will be implemented in an onChange client script(which will be applicable on both RITM and Catalog task) for each and every catalog item. This involves very rigorous effort.

  • Request / RITM / Catalog task to Variables:
    Here you will be writing an on Change client script or a BR on all the three request tables. Still you may not get a uniform behavior as, not all the catalog items will be using the same variables or else any development of a new catalog item may result in creation of new variables(with different variable name) and your Client Script / BR will fail. Also you will be losing the track of variable values which were used to create the request.

Apart from these I cant think of any other solution. If you get to know one, kindly update this thread it would be of interest for me to have a feasible solution for this.

Regards
Air

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Snehal,

Is it not happening now when you update variable on task form are they not getting updated on RITM as well.

The variables you see on task are of RITM only and hence when they get updated it should get reflected on RITM as well.

Regards

Ankur

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

Community Alums
Not applicable

Hi @Ankur Bawiskar ,

can we avoid this, if value of variable is updated on particular task it should not be update on RITM record. Can we achieve this?