+ Start a Discussion
Sujan Kumar ReddySujan Kumar Reddy 

Can we write SOQL query in Validation rule?



Interview question: Can we write SOQL query in validation rule? Can anybody answer it for me?

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

Sujan Kumar ReddySujan Kumar Reddy

Hello JD,


Thanks for your reply, that means you mean to say that we cannot write and SOQL in validation rule ryte? Instead of that we need to write trigger?


thats absolutely correct...