0

My goal is to upload the file from my custom widget, whenever agent request for fill upload.

When agent request file upload from salesforce chat, I am trying to upload file from postman by hitting Endpoint uploadServletUrl

Whenever any agent request to upload a file, I am receiving following event:

{
  "messages": [
    {
      "type": "FileTransfer",
      "message": {
        "uploadServletUrl": "https://myorg-url-.develop.my.salesforce.com/services/liveagent/file",
        "fileToken": "L-28bbffad-0544-4dcc-b459-f29b4c307bfb",
        "cdmServletUrl": "https://myorg-url-.develop.my.salesforce.com/liveagent/chatwindowfiletransfer.jsp",
        "type": "Requested"
      }
    }
  ],
  "sequence": 4,
  "offset": 2215002625
}

Now when ever I'm hitting uploadServletUrl from postman as following: POST Request

Body as Request Body

I'm getting 200 Status code, But Failure Message. Response

and in salesforce Salesforce Agent

For the info: Things are working fine, when I'm using Salesforce Livechat widget.

1
  • I am sorry because this is not an answer, it does not let me add comments bc my reputation. Were you able to figure this out? I am having same problem, not using postman, using Java, but I am getting same response when I am trying to proxy this POST request. Commented Jun 1 at 13:50

0

You must log in to answer this question.

Browse other questions tagged .