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
Riyas MRiyas M 

Which is the best API to work CRUD functions for a PHP website.

Hi All,

I am new to SFDC, I read many articles with SOAP API and REST API, but I confused which API will be work for me without troubles and efficiently. Here my requirements:

  • A Ticket Support system(Tickets Custom Object).
  • PHP website should able to Create, Update, Delete Tickets and it should be reflected in SF as real time.
  • Basically, PHP website will act as a front end and SF will act as Backend that's it.

Please help me to choose a best API(REST or SOAP) that will work Efficiently, Faster, Securely.

Thanks!

Ramakrishna Reddy GouniRamakrishna Reddy Gouni
REST is easy for you.  
Riyas MRiyas M

Thanks Ramakrishna for your valueble information.

I did some more tests with both API and I noticed few more important points:

REST

  • Working based on HTTP method
  • PHP website will be prompted to enter SF login information, so all of the users should have a SF user account to access the PHP website.

SOAP
  • Working in the background based on a defined protocol.
  • Every function will be working in the background, PHP website users won't know about the background work.
  • Only one SF user needed to access the application and this user credential should be placed in API connecting file, Have to develop second user level on PHP website. 

 

 

 

Ramakrishna Reddy GouniRamakrishna Reddy Gouni
Are you developer or customer? Contact me on rkreddy.gouni@gmail.com Thanks & Regards Ramakrishna Reddy Gouni 9553834830