Binary type as input for email preparation

Hello,


How can i pass a binary type variable to an email preparation? I have a simple flow like: 

TimerAction->Email->EmailPreparation->ExportToFile->AttachFile->SendEmail.

But since some changes were made, the ExportToFile takes a bit more time and triggers a timeout error. 


Given that, i would like to move the ExportToFile action to the TimerAction and then pass the binary to the Email.

But that is not possible, because the binary data type is not available.


Any tips?


Thanks in advance

Solution

Solved by using BinaryDataToText and TextToBinaryData actions

Solution

Hi Nuno,

What exactly "ExportToFile" does? What type of binary does it generate?
This is important, as the answer may lead to alternatives.

At first, one alternative would be to store the binary temporarily in an entity and pass the ID to the email, that would fetch it to attach. 

Cheers.

Eduardo Jauch wrote:

Hi Nuno,

What exactly "ExportToFile" does? What type of binary does it generate?
This is important, as the answer may lead to alternatives.

At first, one alternative would be to store the binary temporarily in an entity and pass the ID to the email, that would fetch it to attach. 

Cheers.


Hi Eduardo,

Thanks for your reply.

The problem was solved using the actions BinaryDataToText (to convert the xlsx file inside ExportToFile action to text and be accepted in email preparation) and TextToBinaryData (to convert the text in xlsx file and attach it to the email).