+ Start a Discussion
Staci CaraStaci Cara 

soql validation rules

Hi,

I would lik to query all validation rules that contain a condition with profiles. Is this possible?

Thanks in advance!

Best Answer chosen by Staci Cara
v varaprasadv varaprasad

Hi Staci,

As per myunderstaninding, We cannot Query validation rules that contain a condition with profiles.

We can fetch validation rule details only : 


 

SELECT Id, ValidationName, Active, Description, EntityDefinition.DeveloperName, ErrorDisplayField, ErrorMessage FROM ValidationRule
 

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_validationrule.htm


Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.

Thanks
Varaprasad
@For SFDC Support: varaprasad4sfdc@gmail.com
Blog: http://salesforceprasad.blogspot.com/

Salesforce latest interview questions  :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1

 

All Answers

v varaprasadv varaprasad

Hi Staci,

As per myunderstaninding, We cannot Query validation rules that contain a condition with profiles.

We can fetch validation rule details only : 


 

SELECT Id, ValidationName, Active, Description, EntityDefinition.DeveloperName, ErrorDisplayField, ErrorMessage FROM ValidationRule
 

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_validationrule.htm


Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.

Thanks
Varaprasad
@For SFDC Support: varaprasad4sfdc@gmail.com
Blog: http://salesforceprasad.blogspot.com/

Salesforce latest interview questions  :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1

 

This was selected as the best answer
Bhargavi TunuguntlaBhargavi Tunuguntla
Hi

We can't use fields used in vadilidation rule for condition checking in query.

We can only refer the below fields of ValidationRule object in workbench:

/services/data/v35.0/tooling/query?q=Select Id,Active,Description,EntityDefinition.DeveloperName,ErrorDisplayField, ErrorMessage From ValidationRule

Refer the below link for more details:

https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_DETAIL&dc=APIs_and_Integration&criteria=OPENQUESTIONS&id=906F00000005KekIAE

Hope this will be helpful.

Thanks
Bhargavi.

 
Miles Smith 5Miles Smith 5
for me, this thread solution worked  https://salesforce.stackexchange.com/questions/164931/is-there-a-way-to-call-javascript-after-action-on-visualforce-page​ (http://for me, this thread solution worked https://salesforce.stackexchange.com/questions/164931/is-there-a-way-to-call-javascript-after-action-on-visualforce-page​ with regards)
with regards
https://akinator.ooo/ https://xender.vip/ https://kik.onl/
fort vinfort vin
Hi miles smith i got lot of info from this thread which you have share with us thank you so much for sharing!

Best regards
WhatsApp Plus (https://whatsappgb.download/whatsapp-plus-apk/)
rohit rahulrohit rahul
Thank you so much varaprasad sir,
the solution that you have shared is working for me, truly admire you.

Best Regards
OnMovies (https://www.onmovies.club/)
anil nayakanil nayak
Thanks for the best solution provided by you and i am happy now.
ghd sports (http://ghdsports.club/)
Mack StedMack Sted
Refer the below link for more details:

https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_DETAIL&dc=APIs_and_Integration&criteria=OPENQUESTIONS&id=906F00000005KekIAE

it helps you to solve the problem also check out my blog related to BIN check out this link https://gumroad.com/karacothren/p/what-is-bin-lookup-and-bin-search
Dani SinDani Sin
Thanks for telling us about validation rules, The solution u gave us is good i admire.  if you guy allow i have some useful info about importance Credit Card Generators (https://sites.google.com/view/credit-card-generators) in our life. 
I hope it helps to many people here !
Muzamil IqbalMuzamil Iqbal
Hello Mail Smith I have received more information on this thread you shared with us. Thank you so much for your sharing!
https://whatsappinstalling.com/yowhatsapp-apk-download/
Joseph Pop 2Joseph Pop 2
Hello, I Would Like To Tell You That For Me This Solution Worked https://salesforce.stackexchange.com/questions/164931/is-there-a-way-to-call-javascript-after-action-on-visualforce-page You Can Get Solution Here. With Regards Of https://upserscomlogin.online