Restrict integration from updating a particular field value

imran rasheed
Tera Contributor

I need to restrict the Table API integration from updating a particular field value to false, when it is already set to true by any means of update. Manually or though integration. How to achieve this? Through ACL or BR. I tried with Data policy, but it rejects the complete record instead of that particular field value.

2 REPLIES 2

Abhijit4
Mega Sage

Hi Imran,

You can achieve this with write ACL by providing access to particular role and do not provide the same role to integration user. 

or you can go with BR as well. if you want to do this for all Integration user then check for gs.isInteractive() condition if it is false then it is getting updated by integration. If so, then you use setAbortAction method to revert changes or you can revert only that field value.

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Hey Abhijit,

Can you provide a BR script example, so that I can understand and make it as per requirement here.