• Jim Murphy
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Just caught Nick Tran et al's Dreamforce presentation regarding the new v10 PHP library - and the inclusion of sendEmail - wahoo.

Has it been released yet?  Anyone got a link?

Best,

Jim
I'm using the 1.1 version PHP library which has a  $version = '1.0.6';  in the SforceBaseClient class.  :-/

I'm using the Partner WSDL/Client and I'd like to use sendEmail but that class method doesn't seem to be implemented in the PHP library.  Is there a version that matches the v10 WSDL - where the operation does exist? 

I'm apt to write it myself but I'd rather not waste my time if its just sitting someplace!

Best,

Jim
Hi,
 
I'm having trouble trying to update a record on my salesforce application using PHP and API to connect to my salesforce app. 
 
Below is the error:
 
Could not resolve ColumnType from FieldOrColumnCommon: class common.udd.impl.StandardFieldCommonImpl

SoapFault Object ( [message:protected] => Could not resolve ColumnType from FieldOrColumnCommon: class common.udd.impl.
 
Here is the page code:
 
<?php
require_once ('../soapclient/SforceEnterpriseClient.php');
require_once ('../soapclient/SforceHeaderOptions.php');
try {
  $mySforceConnection = new SforceEnterpriseClient();
  $mySoapClient = $mySforceConnection->createConnection("../soapclient/enterprise.wsdl.xml");
  $mylogin = $mySforceConnection->login("myusername", "mypassword");
  echo "login success<br/>";
  } catch (Exception $e){
   echo "login failed<br/>";
 
  }
 try {
 // $userResult = $mylogin->userInfo;
  //echo $userResult->userFullName . ', your session id is ' . $mylogin->sessionId;
  $sObject1 = new stdClass;
  $sObject1->Name = 'ddsad';
  $sObject1->Id = '0037000000TFArVAAX';
 // $sObject2 = new stdClass;
  //$sObject2->Name = 'KA ZOWIEE';
  //$sObject2->Id = '0037000000TFArVAAX';
  $response = $mySforceConnection->update(array ($sObject1), "Contact");
  print_r($response);
  //print_r($mySforceConnection->getLastRequest())
  echo "update success<br/><br/>";
  //print_r($mySforceConnection->getLastResponse());
} catch (Exception $e) {
 echo "update failed<br/><br/>";
  echo $e->faultstring . "<br/><br/>";
  print_r($e);
}
?>
 
If advice or pointer please.  thanks in advance
  • November 08, 2007
  • Like
  • 0
Just caught Nick Tran et al's Dreamforce presentation regarding the new v10 PHP library - and the inclusion of sendEmail - wahoo.

Has it been released yet?  Anyone got a link?

Best,

Jim