Obama '08

               
   

Go Back   Mike Simonds > Salesforce > Salesforce Coding Discussions

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

Reply
 
LinkBack Thread Tools Rate Thread
  #11  
Old 03-28-2008, 01:34 PM
Junior Member
 
Join Date: Mar 2008
Posts: 8

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12  
Old 03-28-2008, 01:37 PM
Administrator
 
Join Date: May 2007
Posts: 246
Send a message via AIM to mike Send a message via MSN to mike Send a message via Yahoo to mike Send a message via Skype™ to mike

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 03-28-2008, 04:32 PM
Junior Member
 
Join Date: Mar 2008
Posts: 8

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 03-28-2008, 04:46 PM
Administrator
 
Join Date: May 2007
Posts: 246
Send a message via AIM to mike Send a message via MSN to mike Send a message via Yahoo to mike Send a message via Skype™ to mike

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 03-28-2008, 04:49 PM
Junior Member
 
Join Date: Mar 2008
Posts: 8

Exactly... and in time to leave before 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 03-28-2008, 04:50 PM
Administrator
 
Join Date: May 2007
Posts: 246
Send a message via AIM to mike Send a message via MSN to mike Send a message via Yahoo to mike Send a message via Skype™ to mike

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump



Powered by vBulletin


SEO by vBSEO 3.2.0 RC8 ©2008, Crawlability, Inc.

1 2 3 4 5