Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

can we write script in data policy

Gangadhar540-
Tera Contributor

can we write script in data policy

2 ACCEPTED SOLUTIONS

Rajesh Chopade1
Mega Sage

hi @Gangadhar540- 

 

Data Policies are typically used to enforce data integrity by ensuring that data entered into a record meets certain conditions. However, Data Policies themselves do not directly support the inclusion of scripting (like JavaScript) in the same way that Business Rules or Client Scripts do.

Data Policies can be used in conjunction with UI Policies and Business Rules to implement additional logic, but if you need to run complex scripts as part of enforcing data conditions, you’ll need to use other mechanisms like UI Policies, Client Scripts, or Business Rules.

 

I hope my answer helps you to resolve your issue, if yes please mark my answer helpful and correct.

thank you

Rajesh

View solution in original post

Community Alums
Not applicable

Hi @Gangadhar540- ,

Unfortunately this is not possible on Data policy.

What i can recommend here is , you can try to do using business rule on the table.

 

View solution in original post

5 REPLIES 5

Harish Bainsla
Kilo Patron
Kilo Patron

Hi @Gangadhar540-  It is not possible to write script in data policy 

Data Policies enforce data consistency by setting mandatory and read-only field attributes. Unlike UI Policies, Data Policies execute server-side

if my answer helps you mark helpful and accept solution