Update Collaboration Request
This API updates an existing collaboration request. You can use to resubmit the request or reassign it to a different user.
API | Signature |
---|---|
updateCollaborationRequest | static Apttus_Config2.CollabStruct.UpdateCRResponseDO updateCollaborationRequest(Apttus_Config2.CollabStruct.UpdateCRRequestDO requestDO) |
Request Parameter | ||
---|---|---|
Name | Type | Description |
collaborationRequestSO | Object | Collaboration request object with updated attributes. |
Response Parameters | ||
---|---|---|
Field | Type | Description |
success | Boolean | Indicates whether the request was successfully created. |
collaborationRequestId | ID | The ID of the newly created collaboration request. |
message | String | Status message or error. |
updatedFields | List | List of fields updated in the request. |
Code Sample
The sample code below enables you to create collaboration request. After the API is executed, the collaboration request is created.
// Update Collaboration Request
Apttus_Config2__CollaborationRequest__c collabRequestSO = [SELECT id,Apttus_Config2__ChildConfigurationId__c from Apttus_Config2__CollaborationRequest__c WHERE id='a4aKc0000004Ixz'];
collabRequestSO.Apttus_Config2__Priority__c = 'P2';
collabRequestSO.Apttus_Config2__CollaborationType__c = 'Multi-Tier';
collabRequestSO.OwnerId = '005Kc000001PdP1IAK';
Apttus_Config2.CollabStruct.UpdateCRRequestDO requestSO = new Apttus_Config2.CollabStruct.UpdateCRRequestDO();
requestSO.collaborationRequestSO = collabRequestSO;
System.debug('Update CR Request SO : '+requestSO);
Apttus_Config2.CollabStruct.UpdateCRResponseDO updateCRResponse = Apttus_Config2.QuoteCollaborationService.updateCollaborationRequest(requestSO);
System.debug('Update CR Response DO : '+updateCRResponse);