+ Reply to Thread
Results 1 to 2 of 2
This is a discussion on How to get Fields information used in module page layout within the Salesforce PHP Tutorials forums, part of the Salesforce category; Hi, I need your help to get the fields information used in
  1. #1
    ameen is offline Junior Member
    Join Date
    Oct 2010
    Posts
    4

    How to get Fields information used in module page layout

    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.

    Name:  Clipboard01.jpg
Views: 194
Size:  26.2 KB


    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'); 

  2. #2
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    are you trying to get the data from leads into your website? Sorry i am a little confused on what exactly you are trying to do?

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: 04-20-2011, 02:06 PM
  2. Need Information on how to retrieve DISTINCT records?
    By chiranjeevi in forum Salesforce Coding Discussions
    Replies: 1
    Last Post: 07-14-2009, 11:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO 3.5.2