Salesforce Create Attachment // Uploaded Attachement is unreadable

Describe the problem/error/question

I have a 64base for a pdf file from a https request and transformed it to a binary file. When i want to upload it to Salesforce with the node “Create Attachement” the file thats uploaded is depricated. My flow trigger is a webhook to Salesforce.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: [email protected]
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system:

Did you test to decode your base64 on a Linux ? If it can encode, it should be able to decode it.

Dealing with exactly the same issue. Pulling a PDF from S3 and trying to create an attachment in salesforce works, but then the pdf cannot be opened (seems the file is corrupted).

On n8n cloud

I didnt try with Linux, but i can convert he base64 to an pdf file within the flow which isnt corrupted

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.