{"id":4591,"date":"2021-07-09T04:32:41","date_gmt":"2021-07-09T04:32:41","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=4591"},"modified":"2021-07-09T04:53:55","modified_gmt":"2021-07-09T04:53:55","slug":"how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/","title":{"rendered":"How to Import data from a JSON file into multiple Objects in Salesforce using Visualforce Page"},"content":{"rendered":"<p>It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post, we are going to learn how to view and insert the records from a single JSON file to more than one object, be it a Standard Object or a Custom one. This code will display the records on the Visualforce Page and import them into the Lead and Account Vehicles Objects.<\/p>\n<p>To upload our sample JSON file, we\u2019ll need a Visualforce Page. The controller for this Visualforce page will be an <a href=\"https:\/\/studysection.com\/blog\/apex-trigger-best-practices\/\">Apex Class<\/a> that will contain the code to get the file and deserialize the JSON from it and then insert the records into the required Objects.<\/p>\n<h2>Let\u2019s begin with creating our Apex Class:<\/h2>\n<p><strong>\/\/Class Named JSONUploader that will be used as a controller for our Visualforce Page<\/strong><br \/>\n<code>public class JSONUploader{<\/code><br \/>\n<strong>\/\/myfile will get our file from the Visualforce Page<\/strong><br \/>\n<code>public Blob myfile{get;set;}<\/code><br \/>\n<strong>\/\/Constructor of this class that will be used to initialize the object, here \u201creports\u201d will store contents of the JSON file<\/strong><br \/>\n<code>public fromJSON reports {get;set;}<br \/>\npublic JSONUploader(){<br \/>\n   reports = new fromJSON();<br \/>\n    \t}<\/code><br \/>\n<strong>\/\/Getting the main header from our JSON file, here leaddata is the header of our JSON file<\/strong><br \/>\n<code>public class fromJSON{<br \/>\n \tpublic cls_leaddata leaddata{get;set;}<br \/>\n}<\/code><br \/>\n<strong>\/\/Inside the header, \u201crecord1\u201d contains the records that we will be storing inside our first object and \u201crecord2\u201d contains the records that we will store inside our second object.<\/strong><br \/>\n<code>public class cls_leaddata {<br \/>\npublic cls_record1[] record{get;set;}<br \/>\npublic cls_record2[] record2{get;set;}<br \/>\n    \t}<\/code><br \/>\n<strong>\/\/Getting the field names and their values<\/strong><br \/>\n<code>public  class cls_record1 {<br \/>\npublic String FirstName{get;set;}<br \/>\npublic String LastName{get;set;}<br \/>\npublic String Phone{get;set;}<br \/>\npublic String Email{get;set;}<br \/>\npublic String Company{get;set;}<br \/>\n    \t}<br \/>\npublic class cls_record2 {<br \/>\npublic String VName{get;set;}\t\/\/Veera<br \/>\npublic String AName{get;set;}\t\/\/Vinnu<br \/>\npublic String PNum{get;set;}\t\/\/8008997654<br \/>\n    \t}<\/code><\/p>\n<p><strong>\/\/This method will fetch the records from the JSON file and put them in a list and then insert them into our Objects, here we are inserting the data in our Standard Object Lead and Custom Object named Account Vehicles<\/strong><br \/>\n<code>public void doUpload() {<br \/>\n    System.debug('myfile'+myfile.toString());<\/code><\/p>\n<p><strong>\/\/This will deserialize the JSON<\/strong><br \/>\n<code>reports =  (fromJSON) System.JSON.deserialize(myfile.toString(), fromJSON.class);<br \/>\nList<cls_record> rec = reports.leaddata.record;<br \/>\nList<cls_record2> rec2 = reports.leaddata.record2;<br \/>\nList<Lead> leadList = new List<Lead>();<br \/>\nList<Account_Vehicles__c> Alist = new List<Account_Vehicles__c>();<br \/>\nfor(cls_record c :rec){<br \/>\nleadList.add( new Lead( FirstName =c.FirstName ,LastName = c.LastName , Phone =c.Phone , Email =c.Email, Company =c.Company)) ;<br \/>\n     }<br \/>\n     for(cls_record2 c2 :rec2){<br \/>\nAlist.add( new Account_Vehicles__c( Account_Name__c =c2.AName ,Name = c2.VName , Policy_Number__c =c2.PNum)) ;<br \/>\n     }<br \/>\n     insert leadList;<br \/>\n     insert Alist;<br \/>\n    }<br \/>\n}<\/code><\/p>\n<p><strong>Now let\u2019s create our Visualforce Page :<\/strong><br \/>\n<code>&lt;apex:page Controller=\"Parser_New\" ><br \/>\n    &lt;apex:form ><br \/>\n        &lt;apex:pageblock title=\"Read JSON\" id=\"PB\"><br \/>\n            &lt;!-- inputFile for uploading JSON --><br \/>\n            &lt;apex:pageblocksection ><br \/>\n                &lt;apex:pageblocksectionitem ><br \/>\n                    &lt;apex:outputLabel value=\"Please Select JSON File:\"\/><br \/>\n                    &lt;apex:inputFile value=\"{!myfile}\"> &lt;\/apex:inputFile><br \/>\n                &lt;\/apex:pageblocksectionitem><br \/>\n            &lt;\/apex:pageblocksection><br \/>\n&lt;apex:page Controller=\"Parser_New\" ><br \/>\n    &lt;apex:form ><br \/>\n        &lt;apex:pageblock title=\"Read JSON\" id=\"PB\"><br \/>\n            &lt;!-- inputFile for uploading JSON --><br \/>\n            &lt;apex:pageblocksection ><br \/>\n                &lt;apex:pageblocksectionitem ><br \/>\n                    &lt;apex:outputLabel value=\"Please Select JSON File:\"\/><br \/>\n                    &lt;apex:inputFile value=\"{!myfile}\"> &lt;\/apex:inputFile><br \/>\n                &lt;\/apex:pageblocksectionitem><br \/>\n            &lt;\/apex:pageblocksection><\/p>\n<p>            &lt;!-- Table to show the JSON Result --><br \/>\n            &lt;apex:pageblocksection title=\"Result of JSON\" columns=\"1\"><br \/>\n                &lt;apex:pageblocktable value=\"{!reports.leaddata.record}\" var=\"con\"><br \/>\n                    &lt;apex:column value=\"{!con.FirstName}\" headerValue=\"First Name\"\/><br \/>\n                    &lt;apex:column value=\"{!con.Phone}\" headerValue=\"Phone\"\/><br \/>\n                    &lt;apex:column value=\"{!con.Email}\" headerValue=\"Email\"\/><br \/>\n                &lt;\/apex:pageblocktable><\/p>\n<p>                &lt;apex:pageblocktable value=\"{!reports.leaddata.record2}\" var=\"con2\"><br \/>\n                    &lt;apex:column value=\"{!con2.VName}\" headerValue=\"Vehicle Name\"\/><br \/>\n                    &lt;apex:column value=\"{!con2.AName}\" headerValue=\"Account Name\"\/><br \/>\n                    &lt;apex:column value=\"{!con2.PNum}\" headerValue=\"Policy Number\"\/><br \/>\n                &lt;\/apex:pageblocktable><br \/>\n            &lt;\/apex:pageblocksection><\/p>\n<p>            &lt;!-- Button for calling method of controller --><br \/>\n            &lt;center><br \/>\n                &lt;apex:commandButton value=\"Read\" action=\"{!doUpload}\"\/><br \/>\n            &lt;\/center><br \/>\n        &lt;\/apex:pageblock><br \/>\n    &lt;\/apex:form><br \/>\n&lt;\/apex:page><\/code><\/p>\n<p><strong>Sample JSON File: <\/strong><br \/>\n<code>{<br \/>\n\t\"leaddata\": {<br \/>\n\t\t\"record\": [<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"FirstName\": \"Shivam\",<br \/>\n\t\t\t\t\"LastName\": \"Rana\",<br \/>\n\t\t\t\t\"Phone\": \"8608997654\",<br \/>\n\t\t\t\t\"Email\": \"sr@gmail.com\",<br \/>\n\t\t\t\t\"Company\" : \"C5\"<\/p>\n<p>\t\t\t},<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"FirstName\": \"Ashish\",<br \/>\n\t\t\t\t\"LastName\": \"Kumar\",<br \/>\n\t\t\t\t\"Phone\": \"9348989898\",<br \/>\n\t\t\t\t\"Email\": \"ak@gmail.com\",<br \/>\n\t\t\t\t\"Company\" : \"C6\"<br \/>\n\t\t\t},<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"FirstName\": \"Manisha\",<br \/>\n\t\t\t\t\"LastName\": \"Sharma\",<br \/>\n\t\t\t\t\"Phone\": \"8559898989\",<br \/>\n\t\t\t\t\"Email\": \"ms@gmail.com\",<br \/>\n\t\t\t\t\"Company\" : \"C7\"<br \/>\n\t\t\t},<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"FirstName\": \"Harpreet\",<br \/>\n\t\t\t\t\"LastName\": \"Singh\",<br \/>\n\t\t\t\t\"Phone\": \"7988787878\",<br \/>\n\t\t\t\t\"Email\": \"hs@gmail.com\",<br \/>\n\t\t\t\t\"Company\" : \"C8\"<br \/>\n\t\t\t}<br \/>\n\t\t],<\/p>\n<p>\t\t\"record2\": [<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"VName\": \"Vijay\",<br \/>\n\t\t\t\t\"AName\": \"Walia\",<br \/>\n\t\t\t\t\"PNum\": \"8008997651\"<br \/>\n\t\t\t},<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"VName\": \"Jai\",<br \/>\n\t\t\t\t\"AName\": \"Kumar\",<br \/>\n\t\t\t\t\"PNum\": \"8008997652\"<br \/>\n\t\t\t},<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"VName\": \"Karan\",<br \/>\n\t\t\t\t\"AName\": \"Rana\",<br \/>\n\t\t\t\t\"PNum\": \"8008997653\"<br \/>\n\t\t\t},<br \/>\n\t\t\t{<br \/>\n\t\t\t\t\"VName\": \"Ankush\",<br \/>\n\t\t\t\t\"AName\": \"Rajput\",<br \/>\n\t\t\t\t\"PNum\": \"8008997654\"<br \/>\n\t\t\t}<br \/>\n\t\t]\n<p>\t}<br \/>\n}<br \/>\n<\/code><br \/>\n<small><em>The English language is the most widely used medium of communication around the world. Having a certification for the English language can be an advantage. StudySection provides an <a href=\"https:\/\/www.studysection.com\/english-vocabulary-advanced\">English Certification Exam<\/a> that tests English language proficiency in English grammar, reading, and writing.<\/em><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post,<\/p>\n","protected":false},"author":1,"featured_media":4592,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[41,680],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Import data from a JSON into Salesforce using Visualforce Page?<\/title>\n<meta name=\"description\" content=\"It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post, be it a Standard Object or a Custom one.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Import data from a JSON into Salesforce using Visualforce Page?\" \/>\n<meta property=\"og:description\" content=\"It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post, be it a Standard Object or a Custom one.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-09T04:32:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-09T04:53:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/07\/JSON.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"How to Import data from a JSON file into multiple Objects in Salesforce using Visualforce Page\",\"datePublished\":\"2021-07-09T04:32:41+00:00\",\"dateModified\":\"2021-07-09T04:53:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/\"},\"wordCount\":336,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"keywords\":[\"salesforce\",\"Visualforce\"],\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/\",\"url\":\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/\",\"name\":\"How to Import data from a JSON into Salesforce using Visualforce Page?\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2021-07-09T04:32:41+00:00\",\"dateModified\":\"2021-07-09T04:53:55+00:00\",\"description\":\"It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post, be it a Standard Object or a Custom one.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Import data from a JSON file into multiple Objects in Salesforce using Visualforce Page\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Import data from a JSON into Salesforce using Visualforce Page?","description":"It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post, be it a Standard Object or a Custom one.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/","og_locale":"en_US","og_type":"article","og_title":"How to Import data from a JSON into Salesforce using Visualforce Page?","og_description":"It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post, be it a Standard Object or a Custom one.","og_url":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2021-07-09T04:32:41+00:00","article_modified_time":"2021-07-09T04:53:55+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/07\/JSON.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"How to Import data from a JSON file into multiple Objects in Salesforce using Visualforce Page","datePublished":"2021-07-09T04:32:41+00:00","dateModified":"2021-07-09T04:53:55+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/"},"wordCount":336,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"keywords":["salesforce","Visualforce"],"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/","url":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/","name":"How to Import data from a JSON into Salesforce using Visualforce Page?","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2021-07-09T04:32:41+00:00","dateModified":"2021-07-09T04:53:55+00:00","description":"It is a common practice in salesforce to upload records from a JSON file into our orgs. In this post, be it a Standard Object or a Custom one.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/how-to-import-data-from-a-json-file-into-multiple-objects-in-salesforce-using-visualforce-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Import data from a JSON file into multiple Objects in Salesforce using Visualforce Page"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":6240,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/4591"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=4591"}],"version-history":[{"count":3,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/4591\/revisions"}],"predecessor-version":[{"id":4594,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/4591\/revisions\/4594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/4592"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=4591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=4591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=4591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}