+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
This is a discussion on Script can't log into production within the Salesforce Coding Discussions forums, part of the Salesforce category; Couldn't access your site for a while and got it working before
  1. #11
    mramsey is offline Junior Member
    Join Date
    Mar 2008
    Posts
    15
    Couldn't access your site for a while and got it working before it was back up... here is the code:

    PHP Code:
    require_once ('soapclient/SforceEnterpriseClient.php');
    $mySforceConnection = new SforceEnterpriseClient();
    $mySoapClient $mySforceConnection->createConnection("enterprise.wsdl.xml");
    $mylogin $mySforceConnection->login("user@domain.com""password");
    $query "SELECT Name, Creditor_Id__c from Creditor__c";
    $queryResult $mySforceConnection->query($query);
    $records $queryResult->records;
    echo 
    "Number of  Results: ".count($records)."<br />";
    foreach(
    $records as $record) {
    $name=$record->Name;
    $creditorid=$record->Creditor_Id__c;
    echo 
    "Name: $name<br />";
    echo 
    "ID: $creditorid<br />";

    Now I'm going to attempt my original script that actually creates records

    will keep ya posted... thanks for the help

  2. #12
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    ahhh cool man, glad that you got it sorted out! Sorry i am not too familiar with the enterprise client, i use the partner on all my scripts

  3. #13
    mramsey is offline Junior Member
    Join Date
    Mar 2008
    Posts
    15
    Got it creating the records and all.. Everything is working great... also modified my "screen pop" script that takes callerid info from our Fonality PBX (asterisk based system) and searchs salesforce for lead or client and auto opens them if they exist and if not it creates a new lead and opens that up...

    Thanks alot for the assistance and I'll be sure to hang around here maybe i can help out some one else

  4. #14
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    Quote Originally Posted by mramsey View Post
    Got it creating the records and all.. Everything is working great... also modified my "screen pop" script that takes callerid info from our Fonality PBX (asterisk based system) and searchs salesforce for lead or client and auto opens them if they exist and if not it creates a new lead and opens that up...

    Thanks alot for the assistance and I'll be sure to hang around here maybe i can help out some one else

    outstanding that is what I like to hear, accomplishing something on a Friday

  5. #15
    mramsey is offline Junior Member
    Join Date
    Mar 2008
    Posts
    15
    Exactly... and in time to leave before 5

  6. #16
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    that is what I am talking about Mike, have a good weekend and have a beer on me!

    Hopefully we can chat more

    Thanks for joining this little hell hole

+ Reply to Thread
Page 2 of 2 FirstFirst 12

LinkBacks (?)

  1. Hits: 1
    05-02-2012, 09:04 AM
  2. Hits: 1
    11-29-2009, 09:14 AM

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