Skip to main content
Hi

I have a strange requirement. 

I am getting data from an external websersive after making HttpCallout and I want to load the data into LeadObject, say Name , phone etc.

Json data contains many records.

The problem is the fields in standard Lead object and json data do not match

Json field name : fullname , myphone while in Lead object it is firstname , lastname etc

case 1: how to map these fields

case 2. If json data is like this: fullname=salesforce⌗cloud, so in lead object I want to have  firstname=salesforce and lastname=cloud

How to handle this?

any inputs pls elaborate.

thanks

pooja

 
5 answers
  1. Feb 2, 2017, 8:53 AM
    Hi Nabeel

    I got some idea. thanks

    One more point if I may ask.

    I have custom webservice which comes from an external api or assume that its defined in apex controller.

    In an visual force page when I click a button, How to call this webservice using javascript remoting, assuming webservice returns a parameter & also takes a parameter?

    thanks

    pooja

     
0/9000