function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chirugantachiruganta 

How To Integrate Salesforce With PHP

I want to  link salesforce account with online forms to update account information in real time.

 

For This I want to,

 

Develop PHP component capable of communicating with Salesforce and pulling down address data.

 

Develop a WordPress plugin that can be easily configured with salesforce login information, a schedule of when a sync should automatically happen, and a button to "manually sync."

 

 Please Can Anyone help on this?

kibitzerkibitzer

Nothing about this should be particularly difficult.

You'll need to learn:

  • How to use the REST API
  • How to connect to to a REST service using PHP (use Google to find examples).
  • How to build a Wordpress plugin

I would recommend you expose your own web service function and not use the Enterprise or Platform API for security reasons. Be sure your Wordpress site supports SSL also for security reasons.

 

What you want to do is a non-trivial programming task. So, I think you have three options:

  • Get lucky and find a similar Wordpress plugin available for purchase
  • Learn the necessary technology so you can write it yourself
  • Hire a consultant with the relevant experience to build it for you.

It's not a simple kind of problem where it's likely someone will walk you through the process on a forum.

 

Good luck

 

Dan

 

JitendraJitendra

Here,

Complete step by step tutorial for integrating PHP with Salesforce.

 

http://shivasoft.in/blog/salesforce/salesforce-toolkit-for-php/

 

Let me know if i can help further.

kibitzerkibitzer

That's conceptually good - but I'd really tend to avoid using the partner or enterprise WSDL for this kind of application!

 

The reason is - if your website gets hacked or there is a security breach, the code will have access to your entire org. It's much more secure to create your own web service entry point for the specific task you have in mind. Then secure that entry point.

 

Dan

 

JitendraJitendra

Thanks Dan for your valuable input.

SAKTHIVEL MSAKTHIVEL M

HI,

You can find the Basic Tutorials about PHP and Salesforce Implementation using Below URL

http://theblogreaders.com/integration-between-salesforce-and-php


TheBlogreaders.com
Blog | Salesforce Certified Administrator | Salesforce Certified Developer

raj singh 26raj singh 26
Hi,

I am able to integrate Salesforce and PHP using PHP toolkit provided Salesforce.  Our PHP team is able to push data from PHP into Salesforce successfully.  Just wanted to know how to sync data between PHP and Salesforce using PHP toolkit, i.e., if some changes are made in the records at Salesforce end, then same should be reflected at PHP end also.

Thanks!
Naveen KotiNaveen Koti

Basically what you are asking is webhook.
You need to use triggers. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm
 

KevlangdoKevlangdo
Or you can use websockets
https://developer.salesforce.com/blogs/developer-relations/2012/11/real-time-push-notifications-from-force-com-to-heroku-using-websockets.html
 
manzoor hussainmanzoor hussain
hi!
I have tried all steps which mention above but still getting error. Actually I am a beginner I need step by step tutorial for integrating salesforce with my website php form. Please reply. Thanks in advance. 
Best Regards!
Manzoor Hussain. 
shaurya kaneshaurya kane
Hi, 
even I am a beginner and need step by step tutorial for integrating salesforce with my wordpress website php form,,, Please help me with this.
Shaurya