You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Problem in adding attachment to message on Service Request using REST service

Accepted answer
1
Views
2
Comments

Summary:

I am trying to create an attachment using the below REST service. I have provided the request and response payloads. The response seems to have created the attachment. But I am not able to see the attachment on B2B Service -> Service Request Page. Is there anything I am missing? Is there a sample payload that anyone can share for the same.

/crmRestApi/resources/11.13.18.05/serviceRequests/{SrNumber}/child/messages/{MessageId}/child/Attachment

Content (required):

Request Payload:

{

    "FileName": "TestUplodAttachment.txt",

    "FileContents": "dGVzdGluZyBhdHRhY2htZW50Lg=="

}


Response Payload:

{

    "AttachedDocumentId": 300000510067639,

    "LastUpdateDate": "2021-12-23T11:44:51.218+00:00",

    "LastUpdatedBy": "CohuSVC.Integration",

    "DatatypeCode": "FILE",

    "FileName": "TestUplodAttachment.txt",

    "DmFolderPath": 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!