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

New 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('...


0

Please check your credentials part. Error suggests that either username or password is not provided correct. Password should have the Security Token appended unless IP is white listed in the target org.


1

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


Top 50 recent answers are included