Closed TNT-c closed 2 years ago
Is this the right file? The actual bytes:
$ xxd Update.Account.Template.7.csv
00000000: 4163 636f 756e 7420 4964 2c43 7572 7265 Account Id,Curre
00000010: 6e74 2041 7373 6967 6e65 6420 4f77 6e65 nt Assigned Owne
00000020: 7220 4964 2c4e 6577 2041 7373 6967 6e65 r Id,New Assigne
00000030: 6420 4f77 6e65 7220 4964 2c41 7373 6967 d Owner Id,Assig
00000040: 6e6d 656e 7420 5265 6173 6f6e 2c44 6561 nment Reason,Dea
00000050: 6c20 4f77 6e65 7220 4964 2c41 7373 6967 l Owner Id,Assig
00000060: 6e65 6420 546f 2049 640d 0a30 3031 3132 ned To Id..00112
00000070: 3030 3030 3144 7968 6755 4141 522c 3030 00001DyhgUAAR,00
00000080: 3533 7530 3030 3030 334a 4b4d 6a41 414f 53u000003JKMjAAO
00000090: 2c30 3035 3132 3030 3030 3035 7459 4d5a ,00512000005tYMZ
000000a0: 4141 322c 5465 7374 696e 672c 2c0d 0a AA2,Testing,,..
All of the characters are printable. 0d
is CR and 0a
is LF in windows parlance.
I inherited code for a Salesforce Lightning Web Component. In the JS, I added two string values to an array to append 2 additional column headers. When a PC user clicks on the LWC to download the .csv file, non printable characters populate the cells underneath the new headers and it looks like they are empty but they are not.
Sample .csv file, please see cell E2 and F2. Update Account Template (7).csv
LWC JS below: