• TPOL
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

I'm trying to get the Drupal module 'Salesforce Webform Data Integration' working with Salesforce. I've got a form communicating with Salesforce but its returning the error:

 

Element {}item invalid at this location

 

 

Can anyone offer any guidance on how to get it working?

 

(I've only just started using Drupal and Salesforce so I'm willing to accept that I'm being really stupid)

 

Cheers.

  • February 20, 2013
  • Like
  • 0

I'm trying to get the Drupal module 'Salesforce Webform Data Integration' working with Salesforce. I've got a form communicating with Salesforce but its returning the error:

 

Element {}item invalid at this location

 

 

Can anyone offer any guidance on how to get it working?

 

(I've only just started using Drupal and Salesforce so I'm willing to accept that I'm being really stupid)

 

Cheers.

  • February 20, 2013
  • Like
  • 0

Hello everyone,

 

I'm learning how to use the PHP toolkit, and I nedd some help. I want to query the Account Name field, so I do this

 

<?php

require_once ('sforce-php/soapclient/SforcePartnerClient.php');

try {
  $mySforceConnection = new SforcePartnerClient();
  $mySoapClient = $mySforceConnection->createConnection("sforce-php/samples/partner.wsdl.xml");
  $mylogin = $mySforceConnection->login(LOGIN,PASSWORD+TOKEN);

  $userResult = $mylogin->userInfo;
  
  $query = 'SELECT Id,Name from Account limit 5';
  $response = $mySforceConnection->query(($query));
  $sObject = new stdClass();
  foreach ($response->records as $record) 
  {
       print_r($sObject->Name);   
       print_r("<br>");
  
  }
  
} catch (Exception $e) {
  echo $e->faultstring;
}
?>

 

But I get: Notice: Undefined property: stdClass::$Name

 

 

Any advice?

 

 

Thanks in advance

 

 

Best regards

 

JJUPO

  • February 08, 2013
  • Like
  • 0