You need to sign in to do that
Don't have an account?
DevSF
PHP to Salesforce Integration
Hi,
My task is to integrate Salesforce with an external website. That is get account and contact data from external website to salesforce.
The Developer at the external end will push the data into salesforce in PHP Script format.
How do i use it in salesforce.. Will i able to access it directly or Should i do any coding to get that data into salesforce.
As i am new to integration.
Any help will be appriciated....!
My task is to integrate Salesforce with an external website. That is get account and contact data from external website to salesforce.
The Developer at the external end will push the data into salesforce in PHP Script format.
How do i use it in salesforce.. Will i able to access it directly or Should i do any coding to get that data into salesforce.
As i am new to integration.
Any help will be appriciated....!
If the sender is sending the DATA in JSON format then you have to deserialize it and insert into your salesforce org.
But the response will be in PHP Script fromat. How could i proceed.
And if it is in JSON format how do i insert into salesforce org. Do i need to write any code for that....!
Ask you PHP dev to send data in JSON format, salesforce supports only JSON or XML.
you have to get the records using Webservices and insert into salesforce.
below is the example how to use the web service.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_code_sample_basic.htm
The link below is annotations to know what actions can be performed using Webservices.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotations_rest.htm
Please let me know if it helps you.
Kishore
But one final question..!
I am sorry if am asking simple questions.
How do i invoke data in JSON.
If it is using Webservice(@HTTPGet). Then can you please provide a sample webservice which is mostly similar to my scenario.
Thanks,
Anshul
Please look into the following link you will get brief idea how you can work with JSON records while using @HTTPPOST and @HTTPGET.
https://developer.salesforce.com/page/Getting_Started_with_Apex_JSON
Please mark this as answerd if this solves your query.