This API enables you to update a runtime ad hoc approval process that can be used to submit for ad hoc approvals. This API accepts an approval process structure as input parameter and returns the same structure with record IDs populated. For details on the input structure, refer to AdhocApprovalProcessDTO.

APISignature
updateRuntimeAdhocApprovalProcesswebService static Boolean updateRuntimeAdhocApprovalProcess(String sObjectType, Id sObjectId)
Request Parameters
NameTypeRequired?Description

adhocApproverProcessDTO

adhocApproverProcessDTOYesThe ad hoc approver process structure to update.
Response Parameter
NameTypeDescription
resultBooleanThe runtime ad hoc approval process structure for the updated process.