I’m trying to send pdf attachments using loops.so
Loops.so requires the file to be bsae 64
Saving base 64 strings in the db, isn’t ideal - they’re huge.
Has anyone got this working?
I’m trying to send pdf attachments using loops.so
Loops.so requires the file to be bsae 64
Saving base 64 strings in the db, isn’t ideal - they’re huge.
Has anyone got this working?
Hi @mlewis2016,
When you have a file (in a file data type), you can reference it and then encode it in base64 when passing it to Loops through the API call you’re making
Example:
Hello,
I was asking myself this very question too. So far I have a workflow connected with Loops where I only send the pdf link, so the receiver can download it. However, it is not ideal in terms of user experience for the receiver.
I’m curious. How do you send it trough Loops? I use a data variable for the pdf link, can I reuse the same for the actual attachment?
@jhonnatan.rangel, check out the Loops API documentation
@johnny thanks - this tip means I can remove some unnecessary parts to the implementation. I can get the API to fire from the connector when I initialise the call and I receive the email as expected with the attachment. Where I’m failing is getting it to fire from the front end, via API workflows - I’m getting an error that json is incorrect.
That’s a whole different thing, have you made sure your JSON is JSON safe using a tool like jsonlint
Thank you so much.
This was very useful, and I already made it work on my end. I share what I did for the workflow in case someone is in the same situation. I firts generated a pdf. I then send the email with the params I need to send, that includes the pdf encoded in base64.