Hi,
I need your help to get the fields information used in lead page.
I am using phptool kit Api and when I use the supported operator describeSobject('Lead') I am getting the whole meta data and fields information used in Lead. But I just need to get the data for fields used in Lead page layout. i.e I need only to get the field name and type for the field used in this page (please see the screen shot below). Please help me.
I am copying my code below using which I got the whole lead information
PHP Code:
//set this to make sure your not caching the WSDL
ini_set("soap.wsdl_cache_enabled", "0");
//make sure you change this to match your path to the partner client from the php tool kit
require_once ('./includes/soapclient/SforcePartnerClient.php');
//make sure you change this to match your path to the partner client from the php tool kit
$wsdl = './includes/soapclient/partner.wsdl.xml';
$userName = "xxx@xxx.com";
$password = "xxxx";
$key = 'xxxxxx';
$password = $password . $key;
$lead_data = array();
//setup connection
$client = new SforcePartnerClient();
$client->createConnection($wsdl);
$loginResult = $client->login($userName,$password);
$describe = $client->describeSObject('Lead');
Bookmarks