Checking if an Approval Is Required
This API determines if a given context object, in its current state, requires approval. This API accepts the ID of the context object and the type of the context object as request parameters.
isApprovalRequired
API |
Signature |
---|---|
isApprovalRequired |
webService static Boolean isApprovalRequired(String sObjectType, Id sObjectId) |
Request Parameters | |||
---|---|---|---|
Name |
Type |
Required? |
Description |
sObjectId | ID |
Yes |
ID of the business context object. |
sObjectType | String |
Yes |
Type of the context object. |
Response Parameter | ||
---|---|---|
Name |
Type |
Description |
result | Boolean |
Returns true if approval is required. |
Integration Details
Use the following information in your integrations with Conga Approvals API. Refer to Integrating Conga with External Systems to get started.
API Prerequisites
None.
Response/Request XML
Example RequestcheckIfApprovalRequired
API |
Signature |
---|---|
checkIfApprovalRequired |
webService static List checkIfApprovalRequired(List sObjectIds) |
This API determines if a given list of context objects, in its current state, requires approval. It returns a list of true/false values corresponding to the order in which ids were input.
Request Parameters | |||
---|---|---|---|
Name |
Type |
Required? |
Description |
sObjectIds | List<ID> |
Yes |
List of IDs of business context objects. |
Response Parameter | ||
---|---|---|
Name |
Type |
Description |
result | List<Boolean> |
Returns a list of Boolean indicators. The indicator is true if approval is required. |
Integration Details
Use the following information in your integrations with Conga Intelligent Workflow Approvals API. Refer to Integrating Conga with External Systems to get started.
API Prerequisites
None.
Response/Request XML
Example RequestcheckIfApprovalRequired2
API |
Signature |
---|---|
checkIfApprovalRequired2 |
webService static List checkIfApprovalRequired2(String headerIdStatus, List childIdStatusList, List modifiedChildObjectIds) |
This API determines if a context header object (For example: Agreement) or context child object (For example: AgreementLineItems), in its current state, requires approval. It returns a single consolidated list with updated approval status (a01U0000017FRf9IAG__Approval Required) against the corresponding ID.
headerIdStatus & childIdStatus are constructed as follows:
(a01U0000017FRf9IAG__None)
: ID and Approval_Status__c value of the object, separated by '__' (double-underscore)
Request Parameters | |||
---|---|---|---|
Name |
Type |
Required? |
Description |
headerIdStatus | String |
Yes |
Header ID and approval status. |
childIdStatusList | List<String> |
Yes |
List of approval status ID of child objects. |
modifiedChildObjectIds | Lsit<ID> |
Yes |
List of IDs of modified child objects. |
Response Parameter | ||
---|---|---|
Name |
Type |
Description |
result | List<String> |
Returns a list of the header ID and child object id approval statuses separated by '__'. |
Integration Details
Use the following information in your integrations with Apttus Intelligent Workflow Approvals API. Refer to Integrating Conga with External Systems to get started.
API Prerequisites
None.
Response/Request XML
Example Request