Send file through API
Options
Tom_153935
Posts: 76
in Questions
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?
0
Best Answer
-
@Tom_153935 the most recent version of the web API actions provide options for encoding files as base64 or binary. We should use those native options instead of doing it manually
6
Answers
-
@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.
0 -
See the File encoding format section of this help article for more details.
0 -
Thank you, all!
0