Deactivate data policies when runining scripts background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 05:55 AM
Hi,
How can i deactivate data policies when runing scripts background.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 06:01 AM
The point of Data policies, is to enforce data consistently. It cannot be turned off simply with anything im aware of.
You could as part of the fix script inactive the data policies. Then run your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 06:48 AM
yes i already think about this solution but it's too risky.
There no other solution ?
thanks .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 06:52 AM
From the link I posted;
By default, data policies are applied to all GlideRecord operations including those used in Scripted REST APIs, and the REST Table API. You can opt out of applying the data policy to:
- Target records of web services
- Import sets
- Client-side UI policies
So I suppose you could make your fix script do it via a web service by making the data policy not work on web services.