You need to sign in to do that
Don't have an account?
Rajnisf
REST API callout understanding
Hi,
i have to integrate salesforce with 3rd party which provides rest apis endpoint. We need to implement everything in the salesforce end (coding etc)
My requirement is : i have to sync data from 3rd party object obj1 to salesforce Accounts.
for example:
3rd party fields Salesforce fields
obj1.name = account name
obj1.id = objid
Client wants to first implement the syncing between these objects from 3rd party to salesforce
then the automation process.. (for example : once obj1 record created in 3rd party it comes to salesforce as a new account)
My question is ...can we do the callout without any trigger in salesforce.
Please help
Thanks
i have to integrate salesforce with 3rd party which provides rest apis endpoint. We need to implement everything in the salesforce end (coding etc)
My requirement is : i have to sync data from 3rd party object obj1 to salesforce Accounts.
for example:
3rd party fields Salesforce fields
obj1.name = account name
obj1.id = objid
Client wants to first implement the syncing between these objects from 3rd party to salesforce
then the automation process.. (for example : once obj1 record created in 3rd party it comes to salesforce as a new account)
My question is ...can we do the callout without any trigger in salesforce.
Please help
Thanks
Yes, you can perform callouts using @future methods,batch apex,queueable apex.. and then schedule these class to run at specific times using schedulable interface
Thanks for replying........here is the code...
Annotate the method getCalloutResponseContents() with @future(callout=true) as follows
can u help to save the third party data to sf account object... i knw how to display the data in vf page.....bt instead i want to save the data in account object...
You need to map the response data based on the fields existing on account object. Make sure with the field data types while mapping . I mean update Account record if it already exists or create a new account based on resposne data also make sure to capture the 3rd party record id on Account. So that it would be helpful to identily uniqueness for updates ...!!!