Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Get Process Rules for an sObject
Gets all active workflow rules for an sObject. This resource is available in REST API
version 30.0 and later.
Syntax
URI: /services/data/vXX.X/process/rules/sObject
Formats: JSON, XML
HTTP methods: GET
Authentication: Authorization: Bearer token
Request parameters: None required
Request body: None required
Example
Example Request
1curl https://MyDomainName.my.salesforce.com/services/data/v67.0/process/rules/Account -H "Authorization: Bearer token"Example Response Body
1{
2 "rules" : {
3 "Account" : [ {
4 "actions" : [ {
5 "id" : "01VD0000000D2w7",
6 "name" : "ApprovalProcessTask",
7 "type" : "Task"
8 } ],
9 "description" : null,
10 "id" : "01QD0000000APli",
11 "name" : "My Rule",
12 "namespacePrefix" : null,
13 "object" : "Account"
14 } ]
15 }
16}