Lib_Test_Partner_RetrieveTest

The Gravity Forms Salesforce Add-On Lib Test Partner RetrieveTest class.

Defined (1)

The class is defined in the following location(s).

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Partner/RetrieveTest.php  
  1. class Lib_Test_Partner_RetrieveTest extends Lib_Test_TestAbstractPartner 
  2. public function getTestName() 
  3. return 'Retrieve'; 
  4.  
  5. protected function _run() 
  6. // run this to obtain id values 
  7. $query = 'SELECT Id, Name from Profile Limit 3'; 
  8. $response = $this->_mySforceConnection->query($query); 
  9.  
  10. $ids = array(); 
  11.  
  12. foreach ($response->records as $record) { 
  13. print_r($record); 
  14. $ids[] = $record->Id; 
  15.  
  16. // $response = $this->_mySforceConnection->retrieve( 
  17. // "Id, AccountNumber, Name, Website",  
  18. // "Account",  
  19. // array("0018000000Ll0Vm", "0018000000Lkzfz") 
  20. // ); 
  21.  
  22. $response = $this->_mySforceConnection->retrieve( 
  23. 'Id, Name',  
  24. 'Profile',  
  25. $ids 
  26. ); 
  27.  
  28. print "**** Retrive response:\r\n"; 
  29. print_r($response);