Newer Version Available
SObject ApprovalLayouts
Returns a list of approval layouts for a specified object. Specify a particular approval process name to limit the return value to one specific approval layout. This resource is available in REST API version 30.0 and later.
Syntax
- URI
- To get an approval layout description for a specified object, use /vXX.X/sobjects/SObjectName/describe/approvalLayouts/
- To get an approval layout description for a particular approval process, use /vXX.X/sobjects/SObjectName/describe/approvalLayouts/approvalProcessName
- Formats
- JSON, XML
- HTTP methods
- HEAD, GET
- Authentication
- Authorization: Bearer token
- Request parameters
- None required
Example
- Getting all approval layouts for an sObject
-
- Example JSON Response body
-
- If you haven’t defined any approval layouts for an object, the response is {"approvalLayouts" : [ ]}.
- Getting the approval layout for a particular approval process
-
- Example JSON Response body
-