• jsh
  • NEWBIE
  • 5 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
I'm having trouble with what seems to be a simple function to create a Task with PHP.  Below is the code I'm using.  I have hard coded ID's in where appropriate for testing...


$createFields = array (
        'AccountID' => '0013000000Dd0ZV',
        'ActivityDate' => gmdate("Y-m-d H:i:s", time()),
        'Description' => 'My Description',
        'IsClosed' => '0',
        'OwnerId' => '00530000000t3av',
        'Priority' =>'High',
        'Status' => 'In Progress',
        'Subject' => 'Call',
        'WhatID' =>'0013000000Dd0ZV',
        'WhoID' =>'0033000000F6Bb1'
      );
     
      $sObject1 = new SObject();
      $sObject1->fields = $createFields;
      $sObject1->type = 'Task';
       $createResponse = $mySforceConnection->create(array($sObject1));


I have a valid $mySforceConnection.

I get a silent failure.  I  can create a Contact fine.  Also, I have checked the describeSObject on the Task object and it is Createable.

:smileysad:


  • May 16, 2006
  • Like
  • 0
RE: http://sfdc-heretic.warped-minds.com/2006/04/10/progmatic-access-to-salesforcecom-reports/

Does anyone have PHP example code to read the report list, then execute the report and get csv results into a variable?

Thanks!

  • May 16, 2006
  • Like
  • 0

Hi,

I've been tasked with developing an app that grabs leads and contacts from our Salesforce data and I'm running into issues. I need to present our avilable views in a selector, then query for the results of the view and perform operations for rows (objects) returned.

I can query and work with Contact objects just fine, I'm stuck trying to access views.

Thanks in advance.

Spencer
  • May 12, 2006
  • Like
  • 0
I'm having trouble with what seems to be a simple function to create a Task with PHP.  Below is the code I'm using.  I have hard coded ID's in where appropriate for testing...


$createFields = array (
        'AccountID' => '0013000000Dd0ZV',
        'ActivityDate' => gmdate("Y-m-d H:i:s", time()),
        'Description' => 'My Description',
        'IsClosed' => '0',
        'OwnerId' => '00530000000t3av',
        'Priority' =>'High',
        'Status' => 'In Progress',
        'Subject' => 'Call',
        'WhatID' =>'0013000000Dd0ZV',
        'WhoID' =>'0033000000F6Bb1'
      );
     
      $sObject1 = new SObject();
      $sObject1->fields = $createFields;
      $sObject1->type = 'Task';
       $createResponse = $mySforceConnection->create(array($sObject1));


I have a valid $mySforceConnection.

I get a silent failure.  I  can create a Contact fine.  Also, I have checked the describeSObject on the Task object and it is Createable.

:smileysad:


  • May 16, 2006
  • Like
  • 0

Hi,

I've been tasked with developing an app that grabs leads and contacts from our Salesforce data and I'm running into issues. I need to present our avilable views in a selector, then query for the results of the view and perform operations for rows (objects) returned.

I can query and work with Contact objects just fine, I'm stuck trying to access views.

Thanks in advance.

Spencer
  • May 12, 2006
  • Like
  • 0