You need to sign in to do that
Don't have an account?
Mokshada
How to parse JSON data into account and Contact
I have one JSON data as_
[
{
"AccountName":"Test Account new",
"Desc":"Test Desc",
"Phone":"9898989898",
"ContactLastName":"Test contact
}
]
I want to create Account and Contact from above json data. How to do that? Can anyone help.
Thanks,
[
{
"AccountName":"Test Account new",
"Desc":"Test Desc",
"Phone":"9898989898",
"ContactLastName":"Test contact
}
]
I want to create Account and Contact from above json data. How to do that? Can anyone help.
Thanks,
Here's an example of how you can create an Account and Contact from the JSON data you provided
If you find this answer helpful, Please mark it as the best answer.
Requesting you to go through this JSON Parsing Help Documentation for your referrence -> https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_json_jsonparser.htm
Hope it helps too .
Thank you.
I was trying to run your code but getting error,
I have tried copying your code only . I am not getting why it is giving error can you please help?
I have given " " correctly still it is showing missing ". can you please check .
Thanks,