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

Lock down Variables in Task after its submitted

Tom Thompson
Tera Expert

I have catalog items that have Reference fields that create tasks and for example

 

Change Group name pulls the Name in from Servicenow

When the tasks is created it has that old name but when the name is changed and the 1st tasks

is closed out then the next tasks to a different area to correct in there area gets a tasks and the new name

is in Reference field now. 

 

How do you stop the Reference fields from updating after submitting the REQ? 

16 REPLIES 16

Community Alums
Not applicable

Hi @Tom Thompson ,

 

Are you saying that upon submitting a request using catalog item, the reference field should be readonly. 

Is this what you're trying to achieve? If Yes. Please confirm, so that I can help you with a solution.

 

Thanks & Regards,
Madhan Somesh.

No I know I can do that, 

When the Request is to Rename a Group that OLD name is pulled into Group Name "Reference Field"

 

Once the Admin renames it to New Name  and closes his tasks another task is created to next group

and they get Change name of Group and it now has NEW Name in that Reference field that the admin changed.

Community Alums
Not applicable

Hello @Tom Thompson ,

 

Once the group name has been changed, all the reference fields holding that group will be updated to the new name & this is an expected behavior from ServiceNow. 

However, to fulfill your requirement you can create a new string field to copy the old group name once the request has been submitted so that the old group name is visible even though the reference field got updated.

Please let us know if this fulfills your requirements. I can provide you with a script to achieve it.

 

Please mark it as "Accept as Solution" and " Helpful. if this solution helped you.


Thanks & Regards,
Madhan Somesh.

Community Alums
Not applicable

Hi @Tom Thompson ,


Have you tried this approach? If the above mentioned solution suits your requirement please let me know I could write a simple BR to achieve this functionality.

 

Please mark it as "Accept as Solution" and " Helpful. if this solution helped you.


Thanks & Regards,
Madhan Somesh.