Send file through API

Options

My customer would like to send a file (e.g., PDF) via a web API action. Using the reference to the file (e.g., {{my-file}}) passes the alphanumeric ID of the file, not the file itself.

Can this be accomplished some other way?

Best Answer

Answers

  • Thomas_937381
    Options

    @Tom_153935 You may be able to use Files: Convert file to text with Base64 encoding. Just make sure that you use a Fields: Field formulas action after the API call to clear the text field, as it will be quite massive.

  • Jeff_146001
    Jeff_146001 Posts: 296 admin
    Options

    See the File encoding format section of this help article for more details.

  • Tom_153935
    Tom_153935 Posts: 76
    Options

    Thank you, all!