Download PDF to a Salesforce Account Record

To download a PDF file attached to a Salesforce Account record, prepare a pipeline of Salesforce Attachment Download Snap + Document to Binary Snap + File Writer Snap.
  • Salesforce Attachment Download Snap: Enter an Attachment ID.
  • Binary to Document Snap: Select "[BYTE_ARRAY]" for the Encode or Decode property. (Salesforce Attachment Download Snap provides Base64-decoded content data.)
  • File Writer Snap: Enter the output file URL in the File name property.

The following pipeline reads the data in a .json format, encodes the data into a binary format and then decodes the data into output view.


Pipeline to upload PDF attachment to Salesforce

  1. Configure the File Reader Snap
    File Reader Snap: Enter a pdf file URL in the File property.
    File Reader Snap configuration

  2. Configure the Binary to Document Snap

    Binary to Document Snap: Select ENCODE_BASE64 for the Encode or Decode property.


    Binary to Document Snap configuration

    The Document to Binary Snap decodes the data into an output preview as displayed below:
    Document to Binary Output

  1. Execute the Pipeline to create the Attachment for the specified Account SObject record.
  2. Verify in Salesforce that the PDF file is attached to the Account record.