+ Reply to Thread
Results 1 to 2 of 2
This is a discussion on How to integrate salesforce.com report datas into MY WEBSITE (Leads on website) within the Salesforce PHP Tutorials forums, part of the Salesforce category; Hello Friends !, I am integrating the report of lead source from
  1. #1
    aruljothi2011 is offline Junior Member
    Join Date
    May 2010
    Posts
    3

    How to integrate salesforce.com report datas into MY WEBSITE (Leads on website)

    Hello Friends !,

    I am integrating the report of lead source from salesforce.com on mywebsite using mysql query method, i have purchased the API access and integrated , but i dont know here how will fetch the records without the relation to the table query, i mean how to fetch without userid or like that, do you have understand what i am confusing here, you can understand after viewing my code what i am using,

    My code :
    PHP Code:
    =========================
    require_once (
    'soapclient/SforceEnterpriseClient.php');
    require_once (
    'soapclient/SforceHeaderOptions.php');
    // Login to salesforce.com
    $USERNAME 'xxxxxx@xxxxxx';
    $password 'xxxxxx';
    $key 'xxxxxx';

    //join Password and Key here 
    $PASSWORD $password $key;


    try {
      
    $mySforceConnection = new SforceEnterpriseClient();
      
    $mySoapClient $mySforceConnection->createConnection('soapclient/enterprise.wsdl.xml');
      
    $mylogin $mySforceConnection->login($USERNAME$PASSWORD);
      
      
    $accounts=$mySforceConnection->retrieve('xxxxxx','','');


      
    $query "SELECT Id,Name,Title,Company,Email,Status,PostalCode,CreatedDate FROM `Lead` Where   ";
      
      

      
    $response $mySforceConnection->query(($query));

      foreach (
    $response->records as $record) {
        
    print_r($record);
    }

    } catch (
    Exception $e) {
          echo 
    $mySforceConnection->getLastRequest();
          
    print_r($e);

    plz give me the ideas to fetch the lead source and i need to show on my website, thanks in advance friends !

  2. #2
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    First off thanks for joining the site and I am glad that you were able to connect to Salesforce's API without any issue.

    First things first, please do not use the enterprise client to connect to the API, use the Partner client instead. It is much more flexible.

    Leads are converted to Opportunities, that is when they have a relationship with the account object. Unless you build your own custom relationship?

    I tired this on my development instance and I did not see any ties to the account object

    ~Mike

+ Reply to Thread

Similar Threads

  1. Profile Report w/ PHP API
    By ppafford in forum Salesforce Coding Discussions
    Replies: 3
    Last Post: 11-13-2009, 01:18 PM
  2. List all leads
    By ncee in forum Salesforce Coding Discussions
    Replies: 1
    Last Post: 01-26-2009, 11:09 AM
  3. How to create leads using PHP and Salesforce SOAP API
    By nilan in forum Salesforce Coding Discussions
    Replies: 5
    Last Post: 03-06-2008, 03:43 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO 3.5.2