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
Timmy AhluwaliaTimmy Ahluwalia 

Read the data of the Json file attached to the email in apex and create the record

Hello,
want to read the JSON file attached to the email and then create the record.
I tried to save the file to the task and try to fetch the contentdata from the contentVersion  obj it also does not help.
Code will be helpfull.
Thanks
SwethaSwetha (Salesforce Developers) 
HI Timmy,
Recommend reviewing these related posts help to get started:  https://studysection.com/blog/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page/

https://salesforce.stackexchange.com/questions/198066/parse-json-and-insert-records

https://salesforce.stackexchange.com/questions/179744/create-salesforce-records-from-json-response

Thank you