Creating Ad Hoc Approvals
This API creates an ad hoc approval step. This API accepts Context Request ID and creates an approval step for it.
API |
Signature |
---|---|
createAdhocApproval |
webService static Boolean createAdhocApproval(Id contextRequestId, String stepLabel, String assigneeType, Id assigneeId, String submissionComment, String relativeLocationToContext, List dependsOnContextRequestIdList, List dependsOnMeContextRequestIdList, Boolean sendEmail, Boolean notifyOnly) |
createAdhocApproval
Request Parameters | |||
---|---|---|---|
Name |
Type |
Required? |
Description |
contextRequestId | ID |
Yes |
ID of the context request in relation to which you want to create an approval step. |
stepLabel | String |
Yes |
Text label of the step |
assigneeType | String |
Yes |
Type of the assignee. Assignee can be:
|
assigneeID | ID |
Yes |
ID of the assignee. |
submissionComment | String |
Yes |
Comments for approval submission. |
relativeLocationToContext | String |
Yes |
Relative location can be:
|
dependsOnContextRequestIdList | List<ID> |
Yes |
List of request identifiers that the ad hoc approval depends on. |
dependsOnMeContextRequestIdList |
List<ID> |
Yes |
List of request identifiers that depend on this ad hoc approval. |
sendEmail |
Boolean |
No |
Set it as true to send an email request. The default value is true. |
notifyOnly |
Boolean |
No |
The default value is false. |
Response Parameter | ||
---|---|---|
Name |
Type |
Description |
result | Boolean |
The API returns true when the ad hoc approval is created. |