You need to sign in to do that
Don't have an account?

Using REST(JSON) Get data from External website
Hi,
My task is to integrate salesforce with externl website using REST. & they have given me JSON Response code for fields in external website.
I am able to hit the External system URL. I was Struct here...! and how we can get data from external website & how to code for that...?
Like whenever a user enter their account details in external website, those data should also get into salesforce accounts.
How we can achieve this...?
can anyone help for this scenario...!
My task is to integrate salesforce with externl website using REST. & they have given me JSON Response code for fields in external website.
I am able to hit the External system URL. I was Struct here...! and how we can get data from external website & how to code for that...?
Like whenever a user enter their account details in external website, those data should also get into salesforce accounts.
How we can achieve this...?
can anyone help for this scenario...!
See Create a Record (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_create.htm) in the REST API developer guide.
The alternative is that you have Salesforce periodically poll the external system for the Account records.
[1] https://developer.salesforce.com/trailhead/module/apex_integration_services
[2] http://blog.deadlypenguin.com/blog/2015/11/30/json-deserialization-in-salesforce/
But what's the problem now is how we can push data into salesforce
and how do you get those pushed data from external website (or) how we can use that data.
Thanks,
Anshul
[1] https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST
[2] http://blog.deadlypenguin.com/blog/2015/03/09/web-services-development-salesforce/
[3] https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/
[4] https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_steps.htm
[5] https://jsforce.github.io/
[6] https://developer.salesforce.com/page/PHP_Toolkit
[7] https://developer.salesforce.com/blogs/developer-relations/2014/01/python-and-the-force-com-rest-api-simple-simple-salesforce-example.html
[8] http://search.cpan.org/~phred/WWW-Salesforce-0.22/lib/WWW/Salesforce.pm
https://yoursalesforceguide.blogspot.com/2016/12/calling-external-rest-service-from.html
https://yoursalesforceguide.blogspot.com/2016/12/exposing-apex-functionality-through.html
Whenever user clicked on the save Account button, a call out from the external application to Salesforce will happen and the exposed service will be called.
Get the response structure and create a wrapper in Salesforce.
Deserialize the response into Account instance
Do some transformation if required
Save the data and return the response code
Thanks
https://developer.salesforce.com/forums/ForumsMain?id=9060G000000BhQnQAK
Thanks!