You need to sign in to do that
Don't have an account?
ales.p
Csv attachment with line feed and carriage return
I'm trying to build an Apex Class that:
1 - upsert some records
2 - create an attachment
3 - send an email with that attachment
All works well but only one thing is wrong and I'm not able to understand how to solve.
Each line of CSV file MUST contain as required CHR(13) and CHR(10) characters and I insert '\r\n' to obtain that.
But when I check the end of each CSV line, the file contains a double:
CHR(10) CHR(10)
...instead of
CHR(13) CHR(10)
...as expected.
It seems that '\r' OR '\n' has been converted both to CHR(10). :smileysad:
Any help?
Thanks in advance...
Maybe we could try with Hex values but is there a way to convert Hex values to String?