13.07.2015 Views

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ReferenceSObject ApprovalLayoutsSObject ApprovalLayoutsReturns a list of approval layouts for a specified object. Specify a particular approval process name to limit the return value toone specific approval layout. This resource is available in <strong>REST</strong> <strong>API</strong> version 30.0 and later.SyntaxURIFormatsTo 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/approvalProcessNameJSON, XMLHTTP methodsHEAD, GETAuthenticationAuthorization: Bearer tokenRequest parametersNone requiredExampleGetting all approval layouts for an sObjectcurlhttps://na1.salesforce.<strong>com</strong>/services/data/v30.0/sobjects/Account/describe/approvalLayouts/-H "Authorization: Bearer token"Example JSON Response body{}"approvalLayouts" : [ {"id" : "04aD00000008Py9IAE","label" : "MyApprovalProcessName","layoutItems" : [...],"name" : "MyApprovalProcessName"}, {"id" : "04aD00000008Q0KIAU","label" : "Process1","layoutItems" : [...],"name" : "Process1"} ]If you haven’t defined any approval layouts for an object, the response is {"approvalLayouts" : [ ]}.62

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!