• openbook
  • NEWBIE
  • 0 Points
  • Member since 2009

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

I am trying to convert a lead to a contact in my developer account but am receiving the following error message next to the 'Converted status' dropdown:

 

'Error: duplicate value found'

 

There is only one option in this dropdown that is 'Closed - converted'.  I thought this was a Salesforce system field so I dont understand why it has to be a unique field.  Am I doing something wrong?  Has anyone else experienced this problem?

 

 

Message Edited by openbook on 01-22-2009 09:11 AM

I am trying to convert a lead to a contact in my developer account but am receiving the following error message next to the 'Converted status' dropdown:

 

'Error: duplicate value found'

 

There is only one option in this dropdown that is 'Closed - converted'.  I thought this was a Salesforce system field so I dont understand why it has to be a unique field.  Am I doing something wrong?  Has anyone else experienced this problem?

 

 

Message Edited by openbook on 01-22-2009 09:11 AM
I'm trying to grab data from a custom field on my Contact object in PHP but for some reason it always comes back empty. In my query I can filter on that field and using the SOQL Explorer if I run the same query I see the value for that field. Is there something special I need to do to get the value of a special field?

This is my code, the ID field shows up fine but not the custom_field__c.

try {
  $mySforceConnection = new SforceEnterpriseClient();
  $mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');
  $mylogin = $mySforceConnection->login("mylogin", "mypassword");

  $query = "Select Id,custom_field__c From Contact where custom_field__c != null";
  $options = new QueryOptions(10);
  $mySforceConnection->setQueryOptions($options);
  $response = $mySforceConnection->query($query);
  !$done = false;
  $RecordNum = 0;

  echo "Size of records:  ".$response ->size."<br />";

  if ($response->size > 0) {
    while (!$done) {
      foreach ($response->records as $record) {
          $RecordNum = $RecordNum + 1;
        echo $RecordNum.". ".$record->Id." - ";
        echo $record->custom_field__c."<br />";
      }
      if ($response->done != true) {
        try {
          $response = $mySforceConnection->queryMore($response->queryLocator);
        } catch (Exception $e) {
          print_r($mySforceConnection->getLastRequest());
          echo $e->faultstring;
        }
      } else {
        $done = true;
      }
    }
  }

} catch (Exception $e) {
  print_r($mySforceConnection->getLastRequest());
  echo $e->faultstring;
}