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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ReferenceProcess RulesResponse bodyThe response contains an array of process results that contain the following information:NameactorIdsentityIderrorsinstanceIdinstanceStatusnewWorkItemIdssuccessTypeID[]IDError[]IDstringID[]booleanDescriptionIDs of the users who are currently assigned to this approval step.The object being processed.The set of errors returned if the request failed.The ID of the ProcessInstance associated with the object submitted forprocessing.The status of the current process instance (not an individual object butthe entire process instance). The valid values are “Approved,” “Rejected,”“Removed,” or “Pending.”Case-insensitive IDs that point to ProcessInstanceWorkitem items (theset of pending approval requests)true if processing or approval <strong>com</strong>pleted successfully.Examples• See Get a List of All Approval Processes.• See Submit a Record for Approval.• See Approve a Record.• See Reject a Record.• See Bulk Approvals.Process RulesReturns a list of all workflow rules. If a rule has actions, the actions will be listed under the rule. Can also be used to triggerall workflow rules that are associated with a specified record. The actions for a rule are only fired if the rule’s criteria is met.When using a POST request, if anything fails, the whole transaction is rolled back.Cross-object workflow rules cannot be invoked using the <strong>REST</strong> <strong>API</strong>. When doing POST method invocation, the contextIDin the request body must use the 15–character ID.SyntaxURITo get a list of the workflow rules or to trigger one or more workflow rules, the URI is: /vXX.X/process/rules/To get the rules for a particular object: /vXX.X/process/rules/SObjectNameTo get the metadata for a particular rule: /vXX.X/process/rules/SObjectName/workflowRuleIdAvailable since release30.0FormatsJSON, XML72

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

Saved successfully!

Ooh no, something went wrong!