• Anu_g
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Hi
   I am trying to intergrate salesforce with drupal .Added  the code to the page in drupal .Its getting an error when including the SfocePartnerClient.php

require_once() [function.require]: Failed opening required '../soapclient/SforcePartnerClient.php' (include_path='.;C:\wamp\php\PEAR') in C:\wamp\www\MPSC\includes\common.inc(1343) : eval()'d code on line 3

Can any body help me out
  • April 21, 2007
  • Like
  • 0
Hi,
              I have been trying to create a Lead which includes the Campaign Name.But getting the error
INVALID_FIELD: No such column 'Campaign' on entity 'lead'.
How can i take the campaign name to get it inserted into the Lead Table using the API
Any sample code is appreciated
  • April 20, 2007
  • Like
  • 0
Hi,
       I was trying to edit the contact details (for a particular contactId).When editing i am getting the correspoding AccountId for the contact,instead of the name.How can i make name of the account to be displayed for that contact.Please help me regarding this(can u give me a sample code?)

Thanks in Advance
  • March 15, 2007
  • Like
  • 0
I am new to the SalesForce.I have downloaded the PHP toolkit and was trying to create a Contact which includes the Account details

This was the code i have tried

$mySforceConnection = new SforcePartnerClient();
  $sforceSoapClient = $mySforceConnection->createConnection($wsdl);
  $mySforceConnection->setEndpoint($location);
  $mySforceConnection->setSessionHeader($sessionId);

    $FirstName = "sample";
    $LastName = "Test";
    $MailingStreet = "xxx";
    $MailingCity = "yyy";
    $MailingState = "zzzz";
    $MailingCountry = "India";
    $MailingPostalCode = "500 081";
    $Phone = "9886754427";
    $Email = "test@gmail.com";
    $LeadSource = "Web";
    $Languages__c = "English";
    $Level__c = "Primary";
    $Account = "xxx account name";
    $fieldsToCreate
      =array('FirstName'=>$FirstName,'LastName'=>$LastName,'MailingStreet'=>$MailingStreet,'MailingCity'=>$MailingCity,'MailingState'=>$MailingState,'MailingCountry'=>$MailingCountry,'MailingPostalCode'=>$MailingPostalCode,'Phone'=>$Phone,'Email'=>$Email,'LeadSource'=>$LeadSource,'Languages__c'=>$Languages__c,'Level__c'=>$Level__c,'Account=>$Account);
    $sObject = new SObject();
    $sObject->fields = $fieldsToCreate;
    $sObject->type = 'Contact';
    $acct = $mySforceConnection->create(array ($sObject));


When working with this code getting an error

SoapFault Object ( [message:protected] => INVALID_FIELD: No such column 'Account' on entity 'contact'. [string:private] => [code:protected] => 0 [file:protected] => C:\wamp\www\php toolkit\soapclient\SforceBaseClient.php [line:protected] => 324 [trace:private]

Please help me regarding this,of how can i include the account info when creating a contact

Thanks in Advance
  • March 14, 2007
  • Like
  • 0
Hi
   I am trying to intergrate salesforce with drupal .Added  the code to the page in drupal .Its getting an error when including the SfocePartnerClient.php

require_once() [function.require]: Failed opening required '../soapclient/SforcePartnerClient.php' (include_path='.;C:\wamp\php\PEAR') in C:\wamp\www\MPSC\includes\common.inc(1343) : eval()'d code on line 3

Can any body help me out
  • April 21, 2007
  • Like
  • 0
I am new to the SalesForce.I have downloaded the PHP toolkit and was trying to create a Contact which includes the Account details

This was the code i have tried

$mySforceConnection = new SforcePartnerClient();
  $sforceSoapClient = $mySforceConnection->createConnection($wsdl);
  $mySforceConnection->setEndpoint($location);
  $mySforceConnection->setSessionHeader($sessionId);

    $FirstName = "sample";
    $LastName = "Test";
    $MailingStreet = "xxx";
    $MailingCity = "yyy";
    $MailingState = "zzzz";
    $MailingCountry = "India";
    $MailingPostalCode = "500 081";
    $Phone = "9886754427";
    $Email = "test@gmail.com";
    $LeadSource = "Web";
    $Languages__c = "English";
    $Level__c = "Primary";
    $Account = "xxx account name";
    $fieldsToCreate
      =array('FirstName'=>$FirstName,'LastName'=>$LastName,'MailingStreet'=>$MailingStreet,'MailingCity'=>$MailingCity,'MailingState'=>$MailingState,'MailingCountry'=>$MailingCountry,'MailingPostalCode'=>$MailingPostalCode,'Phone'=>$Phone,'Email'=>$Email,'LeadSource'=>$LeadSource,'Languages__c'=>$Languages__c,'Level__c'=>$Level__c,'Account=>$Account);
    $sObject = new SObject();
    $sObject->fields = $fieldsToCreate;
    $sObject->type = 'Contact';
    $acct = $mySforceConnection->create(array ($sObject));


When working with this code getting an error

SoapFault Object ( [message:protected] => INVALID_FIELD: No such column 'Account' on entity 'contact'. [string:private] => [code:protected] => 0 [file:protected] => C:\wamp\www\php toolkit\soapclient\SforceBaseClient.php [line:protected] => 324 [trace:private]

Please help me regarding this,of how can i include the account info when creating a contact

Thanks in Advance
  • March 14, 2007
  • Like
  • 0