[英]Salesforce REST API for Validation Rules
How do we get the list of all validation rules in SalesForce through the REST API? 我们如何通过REST API获得SalesForce中所有验证规则的列表?
I see that there are methods in SOAP API (listmetadata) which can help, but can't find anything in REST. 我看到SOAP API(listmetadata)中有一些方法可以提供帮助,但在REST中找不到任何方法。
I tried the describe method, but that isn't returning any ValidationRule. 我尝试了describe方法,但是没有返回任何ValidationRule。
Thanks 谢谢
You can use the REST version of the Tooling API to get the validation rules. 您可以使用REST版本的Tooling API来获取验证规则。 See the official documentation: ValidationRule
请参阅官方文档: ValidationRule
You can use Workbench to see the ValidationRule sObject via a REST GET. 您可以使用Workbench通过REST GET查看ValidationRule sObject。
To list all the validation rules the REST SOQL query would be something like: 要列出所有验证规则,REST SOQL查询将类似于:
/services/data/v31.0/tooling/query/?q=Select+Id+From+ValidationRule
Incidentally, the Salesforce StackExchange is a great place to ask Salesforce specific questions. 顺便说一下, Salesforce StackExchange是询问Salesforce特定问题的好地方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.