Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

3

One way to approach this is to define custom Apex types to match the structure of https://api.androidhive.info/contacts/ class AndroidContacts { AndroidContact[] contacts; } class AndroidContact { String id; String name; String email; String address; String gender; AndroidPhone phoneDetail; } class AndroidPhone { String mobile; String ...


1

Create a List<Contact> and you can populate the equivalent fields one-by-one with the for loop. You could see the phone structure and setup the Contact record like this: List<Contact> sfContacts = new List<Contact>(); for (Object contact: contacts) { Contact newCont = new Contact(); newCont.MobilePhone = contact.get('phone').get('...


1

I would suggest using the Bulk API Introduction to Bulk API Bulk Query Walk Through a Bulk Query Sample Trailhead: Using Bulk API


Only top voted, non community-wiki answers of a minimum length are eligible