Restrict integration from updating a particular field value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 03:18 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 03:28 AM
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
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 03:31 AM
Hey Abhijit,
Can you provide a BR script example, so that I can understand and make it as per requirement here.