Deactivate data policies when runining scripts background

moncef
Tera Contributor

Hi, 

How can i deactivate data policies when runing scripts background.

Thanks.

3 REPLIES 3

Jace Benson
Mega Sage

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.

yes i already think about this solution but it's too risky.

There no other solution ? 

thanks .

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.