• Rich G
  • NEWBIE
  • 0 Points
  • Member since 2004

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

I have been struggling with creating a set of tasks via PHP.  I am including the SalesforceClient.php file and I am able to query various tables and, create records in tables as well (such as leads).  I have been trying to insert records in the tasks table however I cannot seem to get it to work.  I thought there may be some required fields however, I have tried an number of things and nothing seems to work.

I am using something to the code below:

$client = new SalesforceClient($SESSION);
$FIELDS = array('type'=>'Task','ActivityDate'=>'','CreatedById'=>'$richid','Subject'=>'Test Subject','Priority'=>'Normal');

Anyone have any ideas what may be wrong here?

Also, I am a bit confused in terms of how I should be using the WSDL file as most functions appears to be done via the method above.  Is the WSDL file required if I use this method?

Anyone have any PHP snippets and/or files you can share?

Thanks!

Rich

  • March 17, 2005
  • Like
  • 0
Hi,
When is the email-to-case agent expected to be posted?

Thanks,
~Jill
  • June 14, 2005
  • Like
  • 0