You need to sign in to do that
Don't have an account?
Poorna Developer
Store JSON data in salesforce object
Hi Everyone,
I have JSON data. I wish to store this JSON data in my custom object field.
Is this possible in salesforce? Any idea?
Thanks in Advance.
I have JSON data. I wish to store this JSON data in my custom object field.
Is this possible in salesforce? Any idea?
Thanks in Advance.
I tried directly saving the JSON data in the console to the text area field. It works!
- Naveen K N
All Answers
I have come across similar posts by others users which might help you
https://salesforce.stackexchange.com/questions/51856/insert-new-records-in-to-custom-object-from-json-string-in-salesforce
https://salesforce.stackexchange.com/questions/56607/how-can-i-deserialze-json-object-and-save-them-to-salesforce
https://salesforce.stackexchange.com/questions/217583/how-to-store-json-data-in-a-salesforce-custom-object
Please have a look at this post http://sudipta-deb.blogspot.in/2014/10/json-parsing-with-apex-in-salesforce_17.html
The above link will tell you how to parse and display JSON Data into Tabular format. Now in order to store the same into sObject use below functionality-
If this information helps, please mark the answer as best.Thank you
Hi poorna,
You need to create a wrapper class to parse this JSON
and then in your code use it
If you find this helpful mark it as the best answer.
I'm created a custom object named - Application__c with the following fields.
Apply_Date--c, Approve_Date_c,Reason_c,Status__c and Data__c.
In the field Data__C i need to store the following JSON data
{"data":{"expires_at":"2021-04-02T07:34:43Z","redirect_url":"https://www.saltedge.com/dashboard/connect?token=96f20d2a009f87a2f512bf9739bdsdw02e5d5d840ee692ssdewe3w22ws8235326bd0e41e0b8dbac"}}.
Is possible?
I tried directly saving the JSON data in the console to the text area field. It works!
- Naveen K N
Can you please share here how you work the above process?
Thanks again.