Thursday, September 27, 2018

Invoke the GetSelectValue operation to return the entire list ofvalues or just a subset of values using PHP Toolkit

Note: This article requires existing knowledge of Web Services and PHP. The example will get the values on the salesrep field of the opportunity record.
 
<?php
 require_once 'PHPtoolkit.php';
 require_once 'login_info.php';
 global $myNSclient;

 $gsvFld = new nsComplexObject('GetSelectValueFieldDescription');
 $gsvFld->setFields(array('recordType'=>'opportunity', 'field'=>'salesrep'));
 
//assign the result to extract the result
 $getSelectValueResponse = $myNSclient->getSelectValue($gsvFld);
 echo "<pre>";
  print_r($getSelectValueResponse);
 echo "</pre>";
?>

 

No comments:

Post a Comment