3

How to Get Opportunity Data from Salesforce Through API in PHP

To access opportunities data from Salesforce via soap api call get security token, Username and Password.

Also need force Soapclient library files. You can get these files from this link https://github.com/developerforce/Force.com-Toolkit-for-PHP/tree/master/soapclient

You can get opportunities data through query string for example Select Name, Opportunity_ID__c From Opportunity. Select required parameter data as per you need.

Use below sample code to execute the salesforce api in php:

Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me to start working on your dream project - codefixup@gmail.com

3 Comments

  1. I want to fetch salesforce opportunities and show in my wordpress website, please help me from where can i start.
    which API can i use or how to setup API.

    • Hello yash,

      In wordpress create custom page to execute salesforce api call. Include all require files in that custom page.

Leave a Reply

Your email address will not be published. Required fields are marked *