• JJUPO
  • NEWBIE
  • 0 Points
  • Member since 2012

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

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

Hello everyone,

 

 

I've developed a trigger to update an Opportunity.

 

I'ld like to update It only if It's Ok. I mean, I want to avoid all trigger error message due to Opportunity Validation Rules, Opportunity triggers, etc.

 

In case that the trigger can't update the opportunity, It does nothing.

 

 

Any idea?

 

Thanks in advance

 

 

  • September 17, 2012
  • Like
  • 0

Hello,

I'ld like to restrict "Related to" field from event. Nowadays people can choose anyone from a lot of different objects, but I want they see just Account, Contacts and leads. Is It possible?

Thanks in advance

Javier Jimenez
Uponor Iberia

  • September 12, 2012
  • Like
  • 0

Hello everyone,

 

 

I have an Opportunity trigger. It updates a field when Opportunity Status = 'Completed'

 

We also have translation workbench activated. It translates to french, italian and spanish

 

Question: Do I have to modify the trigger, to include 'Completed' Status in french, italian and spanish? How does It works?

 

 

Thanks in advance!

  • September 06, 2012
  • Like
  • 0

Hello everyone,

 

Is there any way to update an Opportunity field when a Sales Team (Opportunity Team Selling) is specified?  We prefer Salesforce tools, we won't develop APEX code for this.

 

Thanks in advance!

 

 

 

 

  • August 20, 2012
  • Like
  • 0

Hello everyone,

 

How do I know how many attached files are in an opportunity? Is there any way to do a counter with workflows? I don't really want to develop APEX code for this...

 

Thanks in advance!

 

 

  • August 14, 2012
  • Like
  • 0

Hello everyone,

 

Is there any way to update an Opportunity field when a Sales Team (Opportunity Team Selling) is specified?  We prefer Salesforce tools, we won't develop APEX code for this.

 

Thanks in advance!

 

 

 

 

  • August 20, 2012
  • Like
  • 0