Add Comment to a Runtime Ad Hoc Approval Process
This API enables you to add a comment to a runtime ad hoc approval process. This API accepts the context object type, id, and comment as input parameters and returns true if the comments are successfully added.
API |
Signature |
---|---|
AddCommentToRuntimeAdhocApprovalProcess |
webService static Boolean AddCommentToRuntimeAdhocApprovalProcess(String sObjectType, Id sObjectId, String sComment) |
Request Parameters | |||
---|---|---|---|
Name |
Type |
Required? |
Description |
sObjectId | ID |
Yes |
ID of the approval context object. |
sObjectType | Type |
Yes |
Type of the approval context object. |
sComment | String |
Yes |
The comment to add. |
Response Parameter | ||
---|---|---|
Name |
Type |
Description |
result | Boolean |
Returns true if the comment is added successfully. |
/**
* Add comment to a runtime ad hoc approval process
* @param sObjectType the approval context sobject type
* @param sObjectId the approval context sobject identifier
* @param sComment the comment to add
* @return <code>true</code> if the comment was added, <code>false</code> otherwise
*/
WebService static Boolean AddCommentToRuntimeAdhocApprovalProcess(String sObjectType, ID sObjectId, String sComment);
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 Request<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:app="http://soap.sforce.com/schemas/class/Apttus_Approval/ApprovalsWebService">
<soapenv:Header>
<app:SessionHeader>
<sessionId>00DR0000001nyVR!ARYAQLoAlVIxONFhJTAFfySXH7zWCeGqpdBT_w5DVKoZRR0WSbfTd.8KOe0PzjlQVcgkwAh2XhxlAkstCjM1D2ujPD56hZFJ</sessionId>
</app:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<app:AddCommentToRuntimeAdhocApprovalProcess>
<app:sObjectType>Apttus__APTS_Agreement__c</app:sObjectType>
<app:sObjectId>a07R0000009z33H</app:sObjectId>
<app:sComment>Approval Comment</app:sComment>
</app:AddCommentToRuntimeAdhocApprovalProcess>
</soapenv:Body>
</soapenv:Envelope>
Example Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://soap.sforce.com/schemas/class/Apttus_Approval/ApprovalsWebService">
<soapenv:Body>
<AddCommentToRuntimeAdhocApprovalProcessResponse>
<result>true</result>
</AddCommentToRuntimeAdhocApprovalProcessResponse>
</soapenv:Body>
</soapenv:Envelope>