09-10-2021 07:05 AM
Hello,
I am trying to configure an email sender snap which has reads the HTML code for the body of the email downstream. Currently, the HTML is in a .txt file in the groundplex, therefore I am using file reader to pick up the file but I do not know how to convert binary and then feed into the email sender snap.
Thank you very much for your help
09-13-2021 08:01 AM
Hi Spiro,
Thank you very much. I managed to get this working (there was an issue upsteam which wasn’t pulling through the targets on the mapper).
I have now encountered an issue that the output of the binary to document has replaced the tabs and newlines with \t and \n. I am trying to use the csv formatter and parser to recreate the data as it should be but I am stuck.
Many thanks
09-13-2021 08:09 AM
Can you attach the sample data that you are getting as an output from Binary to Document Snap?
Regards,
Spiro Taleski
09-13-2021 08:19 AM
Hi Spiro,
Ah amazing, thank you very much.
Example is attached.
Thanks
Nick
Binary_to Document output0 (7).txt (1.8 KB)
09-13-2021 08:47 AM
Try with replacing the newlines(\n) with <br>
and tabs(\n) with 	
ex: $content.replaceAll ("\r\n","<br>").replaceAll ("\t","	")
Regards,
Spiro Taleski
09-14-2021 01:58 AM
Thank you very much!