• QDTUK
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
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
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