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
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
ReferenceProcess Approvals}]}]}In the code sample above:• name—the name of the region• <strong>com</strong>ponents—an array of Aura <strong>com</strong>ponents in the region• properties—an array of properties for the <strong>com</strong>ponent• typeName—the name of the Aura <strong>com</strong>ponent• typeNamespace—the namespace of the Aura <strong>com</strong>ponentProcess ApprovalsReturns a list of all approval processes. Can also be used to submit a particular record if that entity supports an approval processand one has already been defined. Records can be approved and rejected if the current user is an assigned approver. Whenusing a POST request to do bulk approvals, the requests that succeed are <strong>com</strong>mitted and the requests that don’t succeed sendback an error.SyntaxURITo return a list of the approvals, the URI is: /vXX.X/process/approvals/Available since release30.0FormatsJSON, XMLHTTP methodsGET, HEAD, POSTAuthenticationAuthorization: Bearer tokenRequest parametersNone requiredRequest bodyThe request body contains an array of process requests that contain the following information:NameactionTypecontextId<strong>com</strong>mentsnextApproverIdsTypestringIDstringID[]DescriptionRepresents the kind of action to take: Submit, Approve, or Reject.The ID of the item that is being acted upon.The <strong>com</strong>ment to add to the history step associated with this request.If the process requires specification of the next approval, the ID of theuser to be assigned the next request.71