function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Roshan SahatiyaRoshan Sahatiya 

Apex code for fetching values from a CSV (CSV is an attachment in Email Service)

Hi,

 

Can anyone out here provide me with the code for reading CSV file which comes as an attachment in an Email Service.

 

Thanks in Advance.

 

 

Roshan

kiranmutturukiranmutturu

once you got the csv file through email service read the binaryAttachments in to InboundEmail.BinaryAttachment[]. then 

 

get the body in to a string...the use this link...