Jump to content

How can I add attachments to a ticket using API (integromat)


ramf

Recommended Posts

 Hi, 

How are you all?

I need some help....

I'm using integromat to connect several systems to my WHMCS.

Everything is  working well except the AddTicketReply - attachments parameter.

So I added this parameter to my integromat scenario:

image.png.93e1c2aeac49ea05b3cccdbd6a38c3cb.png

But I'm getting this error:

  • result
    error
  • message
    File not found at path: base64_encode(json_encode([['name' => 'sample_text_file.txt', 'data' => base64_encode('This is a sample text file contents')]]))

And in the ticket I see this:

image.png.91f9771d8cd24fc512c23b8d7c00009d.png

The file itself is empty. 

 I saw in the GetTicketAttachment API an example of how one can get an existing attachment from a ticket and the expected responce:

 

{
    "result": "success",
    "filename": "whmcs_logo.png",
    "data": "iVBORw0KGgoAAAANSUhEUgAAAPoAAAA+CAYAAAAClQafAAAABGdBTUEAALGOfPtRkwAAAAlwSFlzAAALEwAACxMBAJqcGAAABCVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dG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V77tNtirggE+OObbvCW7TsPdpHcy6gvMS\/mcVaAb7Y53MvkUpFNq9jP3oY3sHbLk2nTQdJvm9+8fsyIfvPaA\/FWy3ZGuQnrVw0N7sONB5r3PXBqU05SpRoJ6dg958qT\/Cn4O5gOzgbvAUeD3ojG\/oNJyLvVhyd9lX5fEF0a5bfgIMCB6npuyM8u0c2TdlPaPhEuqpVOnE9hcpFEsOyL1MBRmBbu1BG9FZX1T7AlR0GpuqR8tODYF6L6pBwfAvJasgeV+lTTkhdAuqh+eTsp0mT3i9JuBdnlKfxIiu7TcjAEZHtXqf6TQpYHVpLIYj\/A+Ju3punhQy0DVtghJ1B18OD2lCVPLyzmBteY5sQ+ttGO0+Kb5tx8rEJvnq1BAWxfeBP9Mu9wDpUxf\/7BF586quq6UJ1TEd8d3XH3BcW3MUk+PaFaS6nrwaNAfTAZnASmgQlgKNB99hP1ixbaVoBFQAZ2MxDBNQ7yijq418JFiGjMZHxF9bTRoGLm8r6FZEdQr+qU9dKgzzWgVa8GfjN199pdpb4BlBUAuUR16Waorj4hEfXJKmvBR2X7XV8r9XWtVZBHfSEvQETPlYdgj+Ql\/\/0uZeyppLVL9yvXvdA1SgHoenLFl1K1X3+Zz6wztQObq3\/EHP4S5vBhuflV\/S3T3uz8MmC1fuM7x+d99OtbbimNoy9Uju6T+iKFWn5rfOl+6\/7JaErUJ4fAHrA7ea77Haef\/O4v0ZnSFxZdc3XvBmUWfeTPqFebDITXRajvwOtSUbIS6tNrFXtLqZM8IokGhvCmkde5Xb4EaJpkWgcsN4\/Fo85oHsFXMzd32xrcAH9m7fHK6rzvd6svfcstpaPpC5UjYyDCeko6SX4VIyWQgs6V1kMyn8LKUu6Bcg+Ue6DcA+UeKPdAuQfKPVDugXIPlHug3APlHij3wFu0B\/4\/80LziG\/S41MAAAAASUVORK5CYII="

 

So I added the same information to my integromat:

image.png.dd8e004b27dc1486e90d85a2fa15a0f2.png

 

This time I got this error:

image.png.d8d78e9c50169405c9318d318c4db7e6.png

 

And the same inside the ticket:

Can anyone help me understand what value I should add to the attachments parameter so I would be able to add an attachment to a ticket?

Thanks!

Ram

 

 

 

 

 

 

Edited by ramf
Link to comment
Share on other sites

Hi, 

So this is the answer:

1. Do a base64 encoding on the data. 

{{base64(This is a sample text file contents)}}

2. construct a json of the encoded data + file name: 

[{"name":"sample_text_file.txt","data":"VGhpcyBpcyBhIHNhbXBsZSB0ZXh0IGZpbGUgY29udGVudHM"}]

3. Do a base64 encoding on the string above.

4. add the base64 code as a value to the attachment key.

 

image.thumb.png.f7362be243bf594497f5fe9ea201f5c4.png

That's it.

Ram

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated