• chuckdubdub
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 23
    Replies

I have a colleague who is indicating that they are unable to carryover the Activity history of an Account or Contact when creating an opportunity from that record.  I mostly work with Leads/campaigns so am unsure how to advise.

 

Thanks for any suggestions!

 

Chuck

 

I have a client who wants to have an email triggered based on content of a Lead activity subject.  For example if that Subject line includes the word "Demo" she wants an email triggered with the lead ID/URL contained therein.  Seems like this would be a job for "Workflow Rules," but I don't see that rules based on Task can trigger email alerts.  Suggestions?

 

Thank you!

 

Chuck

I have a client who has web-based forms in a CMS that cannot readily be integrated with the SF API, so as a result we're trying various workarounds to being able to pass a lead record SFID to a 3rd party web page (via query string).  It could be possible if say, when a new lead is inserted or updated, if we could simply pass the SFID to the 3rd party web page via an HTTP request triggered from something like a workflow rule. 

 

Any provision to do this with Workflow rules?  Not seeing it there.

 

The obvious solution is to simply build our lead forms on a server where we can use the SF api and do our 3rd party http requests via PHP, pretty straightforward of course.  At this point, though just investigating workarounds that might be possible via the Enterprise edition of SF.

 

Thanks much for any suggestions!

 

Chuck

We've got a batch of workflow rules that assign leads to various inside sales personnel based upon a round robin formula.  Works pretty well.  However when a user clones a lead record, the workflow rules still run and will tend to reassign the cloned lead.  Is there an established practice of how to the cloning process to ignore workflow rules?  One thought I had is to use a flag (checkbox) field and have the workflow rules look for a set flag.  Would this do the trick? Other ideas?

 

Thanks,

 

Chuck

I have a client who does not have the Enterprise or API edition of SalesForce.  He would like for me to create a button in the the individual lead record that:  1) Creates an empty "call" activity record for a lead and 2) Simply increments the existing Call field by 1.   I believe that the call field is a custom field, though not sure.

 

Is this even possible to do using an S control or javascript?

 

Thanks so much,

 

Chuck Wyatt

I have a client whose hosting provider won't install the SOAP module for their PHP install, so bear with me.

 

Essentially I'm trying to loop through the output below and create standards variables for field names and their values.  I keep getting stumped because of the sObject reference.  I've tried flattening the array, but anytime I try and loop through it like a regular array or even a nest array, I'm hit by the fact that I can't address sObject in the same way.  What basic thing am I missing, some method of addressing the sObject -> addresses, but I'm just not getting it.

 

Any suggestions, much appreciated.

 

Thanks!

 

Chuck

 

 

Array ( [done] => true [queryLocator] => [records] => Array ( [0] => sObject Object ( [type] => Lead [id] => 00Q7000000WDBamEAH [values] => Array ( [FirstName] => Chuck YET another test record to leave [LastName] => Wyatt please leave for nurture testing [Email] => nurturetestagain@wordimpressive.com [VFS_Trial_Begins__c] => 2010-08-10 ) [fieldsToNull] => ) [1] => sObject Object ( [type] => Lead [id] => 00Q7000000WDBaXEAX [values] => Array ( [FirstName] => Chuck another test record to leave [LastName] => Wyatt leave for nurture testing [Email] => nurturetest@wordimpressive.com [VFS_Trial_Begins__c] => 2010-08-10 ) [fieldsToNull] => ) [2] => sObject Object ( [type] => Lead [id] => 00Q7000000WDBPLEA5 [values] => Array ( [FirstName] => Chuck more placement for nurture testing [LastName] => Wyatt leave this record for a bit [Email] => pleaseleave@wordimpressive.com [VFS_Trial_Begins__c] => 2010-08-10 ) [fieldsToNull] => ) ) [size] => 3 )

 

We have a lead form that largely has text input fields and I've been asked to add a multi-select list box to the mix.  My insert function is below.  Can I simply use a post call like below to add the multiple data items?

 

Thanks,

 

Chuck

 

 

 


    $contact = new sObject('Lead',
                           null,
                           array(
                               'salutation' => $_POST['salutation'],
                               'Title' => $_POST['title'],
                               'FirstName' => $_POST['first_name'],
                               'LastName' => $_POST['last_name'],
                                 'Company' => $_POST['company'],
                                 'email' => $_POST['email'],
                                'LeadSource' => $_POST['lead_source'],
                                'Street' => $_POST['street'],
                                'City' => $_POST['city'],
                                'State' => $_POST['state'],
                                'Phone' => $_POST['phone'],
                                'PostalCode' => $_POST['zip'],
                                'Country' => $_POST['country'],
                                'Star_P_Client__c' => $productuse,                               
                               'Industry' => $_POST['industry'],
                               'Database__c' => $_POST['00N30000000qVb2'],
                               'KeyProductRequirement__c' => $_POST['00N30000000qVbA'],
                               'description' => $_POST['description'],
                               'CorporateDesktopOSStandard__c' => $_POST['00N30000000qVb3'],
                               'ERPSystem__c' => $_POST['00N30000000qVbE'],
                               'CorporateDesktopHWStandard__c' => $_POST['00N30000000qVbJ'],
                            $researchreport
                           )                          
                          );
    $createResult = $sfdc->create($contact);
 

I guess the long and short of my question is to ask: Using PHP 5.x and the SF API can I update or create records similar to how I have been doing it with LEADS, CONTACTS and other "standard" SF tables? Any reference links to info/documentation around syntax of using custom objects in this way? Thank you! Chuck Wyatt
If I run this query via sforce Explorer:
 
Select Id, AccountID, LastName from Contact where email = 'username@domain.com'
 
I get data output for all fields, as expected.
 
However, if I run the same query via the API (see below), I get output for all fields except for the AccountID.  The value for this field is blank.

 
   $queryResult = $sfdc->query("select AccountID, id, FirstName, LastName from Contact where email = '$emaillogin'");
$record = $queryResult['records'];
 // getting the record pointer 
 $sfrecordid = $record->id;
// all of these will output except for accountid
$values = $record->values;
$firstname = $values['FirstName'];
$lastname = $values['LastName'];
 $accountid = $values['AccountID'];

  
Thanks for any suggestions!
 
Chuck
We've tried to delete self service users by going to the Account record to which they are attached, in SF.com, going to the "Contacts" section and then hitting the Del link for the given record.  That makes them disappear from our listings, but they aren't really deleted, it seems. 
 
For example, if I use the API to query the record from the SelfServiceUser table, or if I use sforce explorer, I'm still seeing the records in our tables.  Why is that?
 
Thanks!
 
-Chuck
I've been doing some reading and I think I'm *almost* there.  I'm doing the following to attempt to use the lead assignment rules, but it isn't working -- I get NULL results. 

$leadassign = new soapval('autoAssign', 'boolean', 'TRUE');

    $contact = new sObject('Lead',
                           null,
                           array(
                               'salutation' => $_POST['salutation'],
                               'FirstName' => $_POST['first_name'],
                               'LastName' => $_POST['last_name'],
                                 'Company' => $_POST['company'],
                                 'email' => $_POST['email'],
                                'LeadSource' => $_POST['lead_source'],
                                'Street' => $_POST['street'],
                                'City' => $_POST['city'],
                                'State' => $_POST['state'],
                                'Phone' => $_POST['phone'],
                                'PostalCode' => $_POST['zip'],
                                'Country' => $_POST['country'],
                               'MobilePhone' => $_POST['mobile'],
                               $leadassign                           )                          
                          );
    $createResult = $sfdc->create($contact);
  print_r("\ncreate one: \n\n");
print_r($createResult);


Thanks for any help!!

Chuck
When we use the Web2case forms generated from SF, and when someone submits a case, the contact record for that case will be automatically associated with the contact record, presumably using the email address as a key.
 
However, if I use the API to insert a case, that doesn't happen.  Since the contact name field in the case record is a lookup data type, it isn't clear to me how to make that association. 
 
Any hints would be appreciated!
 
Thanks,
 
Chuck

Message Edited by chuckdubdub on 08-02-2006 10:54 AM

Sorry a noob question again from me.  I've been successfully using the API for creating records in Contacts and Leads.  I assume the same is possible in Cases.   If so, where could I find a list of available fields for Cases?
 
thanks,
 
Chuck
Hi there,
 
I'm using modified nusoap.php for PHP4.  Anyway, I'm trying to figure out the syntax to update a custom lead field.
 
I can find the unique identifier for the field in SF, but I get no joy when I added it to my update array. 
 
Am I waaaay off??
 
    // update Lead record
    $contact1 = new sObject('lead',
            $id,
            array(
                'Description' => 'My test',
         // this is the custom field right below here which equates to a checkbox in the SF interface.
       // I want it checked...  I've tried 1 and '1' but no dice:
      
         '00N300000016PAX' => 'TRUE',
 
   'Email' => 'cwyatt123@blahblah.com'
            ),                          
                array('Phone', 'Fax')
           );
    $updateResult = $sfdc->update($contact1);
    print_r("\nupdate one: \n\n");
    print_r($updateResult);
Thanks,
 
Chuck

Message Edited by chuckdubdub on 05-17-2006 03:47 AM

Message Edited by chuckdubdub on 05-17-2006 03:48 AM

We upgraded to an ISP with PHP5, only to find out that it isn't 5.1.2, rather it is 5.1.1.  Can we *not* take advantage of the Sforce.com PHP toolkit?
 
Thanks,
 
Chuck

Here's my query that I am using with php4 nusoap:

    $queryResult = $sfdc->query("select id, firstname, lastname, phone, description, fax from lead where id = '$id'");
    print_r("\nquery by id: \n\n");
    print_r($queryResult);

How do I just grab the value of "description" and assign it to a variable?  I'm guessing I need to loop through $queryResult as an array somehow? 

I tried setting a variable to $queryResult['description'] but to no avail!

Thanks!

Chuck

I'm posting here at adamg's suggestion (below). 
 
We're running PHP 4 on our site, and I'm interested in using the SF API (along with our web-to-lead functionality) to avoid duplicate insertions of lead records.  What we'd like to do, is query the record, perhaps by email, and if it already exists, then update an activity field with the lead source and a date.  Possible to do with PHP 4?
 
Thanks! 
 
-Chuck
 
 
>>
 
Re: Possible to use API to update records and avoid inserting dupes (NOOB)?  
adamg
sforce Moderator
Posts: 675
Registered: 06-02-2003


adamg

Reply 2 of 2

Viewed 3 times


The toolkits aren't going to do this out of the box, but you can (fairly easily) write some PHP code to check to see if the email existings, etc and update accordingly.  If you can't find a link to the older PHP 4.0 based stuff (not as easy to use as the PHP5 toolkit, but still possible) post a message to the PHP boards and we'll dig it up
I'm working for a client who uses Salesforce.com's web-to-lead code to create new lead records from their web site.  As their business has grown they are seeing a greater number of duplicate lead records coming through.  These records can be merged, but they lose lead_source data when the duplicates are put together.  So via the web form, we need to be able to 1) Check to see if a lead record already exists and 2) Update an activity field on the record if the lead already exists rather than insert. 3) Insert if no record exists.
 
(Certainly email address could be a good query criteria for avoiding dupes.)
 
Anyway, would digging into any of the API toolkits give us this capability?  We're currently running PHP 4, on our web site, which probably means we can't use the currently available PHP toolkit which is for 5.x.
 
Thanks for any suggestions -- muchas gracias.
 
-Chuck

Message Edited by chuckdubdub on 03-15-2006 12:40 PM

We've got a batch of workflow rules that assign leads to various inside sales personnel based upon a round robin formula.  Works pretty well.  However when a user clones a lead record, the workflow rules still run and will tend to reassign the cloned lead.  Is there an established practice of how to the cloning process to ignore workflow rules?  One thought I had is to use a flag (checkbox) field and have the workflow rules look for a set flag.  Would this do the trick? Other ideas?

 

Thanks,

 

Chuck

I have a client who does not have the Enterprise or API edition of SalesForce.  He would like for me to create a button in the the individual lead record that:  1) Creates an empty "call" activity record for a lead and 2) Simply increments the existing Call field by 1.   I believe that the call field is a custom field, though not sure.

 

Is this even possible to do using an S control or javascript?

 

Thanks so much,

 

Chuck Wyatt

I created this script to auto log calls based on the current disposition field...it also handles creation of follow up tasks. Basically elminates the need for the standars call log process. I have it working on the Account SO but cannot get it working on the leads SO.... not sure what the deal is. Here is a copy of the script for the leads object:

 

 

{!requireScript("/soap/ajax/13.0/connection.js")}

try
{
var account = new sforce.SObject("Lead");
var task = new sforce.SObject("Task");
var followUp = new sforce.SObject("Task");

account.id = "{!Account.Id}";
account.IsDirty__c = true;

// set task ‘assigned to’ field to the current user
task.OwnerId = "{!Lead.OwnerId}";
task.Subject = "{!Lead.Current_Disposition__c}";
task.WhatId = "{!Lead.Id}";
task.Description = "{!Lead.Notes__c}";

// set status to closed
task.Priority = "Normal";
task.Status = "Completed";

// if follow up required, then create the follow up task
if ({!Lead.Follow_Up_Required__c})
{
followUp.OwnerId = "{!Lead.OwnerId}";
followUp.Subject = "{!Lead.Current_Disposition__c}";
followUp.WhatId = "{!Lead.Id}";
followUp.Description = "{!Lead.Notes__c}";

// set status to closed
followUp.Priority = "Normal";
followUp.Status = "Not Started";
followUp.IsReminderSet = true;
followUp.ActivityDate = Date.valueOf({!Lead.Follow_Up_Date__c});
}

var result = sforce.connection.update([lead]);
var resultT = sforce.connection.create([task]);
var resultF = resultT;

if (followUp != null)
{
resultF = sforce.connection.create([followUp]);
}

if (result[0].getBoolean("success") && resultT[0].getBoolean("success") && resultF[0].getBoolean("success"))
{
{!Lead.IsDirty__c} = false;
{!Lead.Follow_Up_Required__c} = false;
{!Lead.Follow_Up_Date__c} = null;
{!Lead.Current_Disposition__c} = null;
{!Lead.Notes__c} = null;

result = sforce.connection.update([lead]);

if (result[0].getBoolean("success"))
{
window.location.reload();
}
}
else
{
alert("Error!");
}
}// End try block
catch(err)
{
alert("Error creating task: " + err.toString());
}

 

 

I am receiving a "missing ) after arguments list" error, not sure why...code is identical except for field names and variables.

 

Here is copy of working code on account object:

 

 

{!requireScript("/soap/ajax/13.0/connection.js")}

try
{
var account = new sforce.SObject("Account");
var task = new sforce.SObject("Task");
var followUp = new sforce.SObject("Task");

account.id = "{!Account.Id}";
account.IsDirty__c = true;

// set task ‘assigned to’ field to the current user
task.OwnerId = "{!Account.OwnerId}";
task.Subject = "{!Account.Current_Disposition__c}";
task.WhatId = "{!Account.Id}";
task.Description = "{!Account.Notes__c}";

// set status to closed
task.Priority = "Normal";
task.Status = "Completed";

// if follow up required, then create the follow up task
if ({!Account.Follow_Up_Required__c})
{
followUp.OwnerId = "{!Account.OwnerId}";
followUp.Subject = "{!Account.Current_Disposition__c}";
followUp.WhatId = "{!Account.Id}";
followUp.Description = "{!Account.Notes__c}";

// set status to closed
followUp.Priority = "Normal";
followUp.Status = "Not Started";
followUp.IsReminderSet = true;
followUp.ActivityDate = Date.valueOf({!Account.Follow_Up_Date__c});
}

var result = sforce.connection.update([account]);
var resultT = sforce.connection.create([task]);
var resultF = resultT;

if (followUp != null)
{
resultF = sforce.connection.create([followUp]);
}

if (result[0].getBoolean("success") && resultT[0].getBoolean("success") && resultF[0].getBoolean("success"))
{
account.IsDirty__c = false;
account.Follow_Up_Required__c = false;
account.Follow_Up_Date__c = null;
account.Current_Disposition__c = null;
account.Notes__c = null;

result = sforce.connection.update([account]);

if (result[0].getBoolean("success"))
{
window.location.reload();
}
}
else
{
alert("Error!");
}
}// End try block
catch(err)
{
alert("Error creating task: " + err.toString());
}

 

Any help would be appreciated

 

{!requireScript("/soap/ajax/13.0/connection.js")}

try
{
var account = new sforce.SObject("Lead");
var task = new sforce.SObject("Task");
var followUp = new sforce.SObject("Task");

account.id = "{!Account.Id}";
account.IsDirty__c = true;

// set task ‘assigned to’ field to the current user
task.OwnerId = "{!Lead.OwnerId}";
task.Subject = "{!Lead.Current_Disposition__c}";
task.WhatId = "{!Lead.Id}";
task.Description = "{!Lead.Notes__c}";

// set status to closed
task.Priority = "Normal";
task.Status = "Completed";

// if follow up required, then create the follow up task
if ({!Lead.Follow_Up_Required__c})
{
followUp.OwnerId = "{!Lead.OwnerId}";
followUp.Subject = "{!Lead.Current_Disposition__c}";
followUp.WhatId = "{!Lead.Id}";
followUp.Description = "{!Lead.Notes__c}";

// set status to closed
followUp.Priority = "Normal";
followUp.Status = "Not Started";
followUp.IsReminderSet = true;
followUp.ActivityDate = Date.valueOf({!Lead.Follow_Up_Date__c});
}

var result = sforce.connection.update([lead]);
var resultT = sforce.connection.create([task]);
var resultF = resultT;

if (followUp != null)
{
resultF = sforce.connection.create([followUp]);
}

if (result[0].getBoolean("success") && resultT[0].getBoolean("success") && resultF[0].getBoolean("success"))
{
{!Lead.IsDirty__c} = false;
{!Lead.Follow_Up_Required__c} = false;
{!Lead.Follow_Up_Date__c} = null;
{!Lead.Current_Disposition__c} = null;
{!Lead.Notes__c} = null;

result = sforce.connection.update([lead]);

if (result[0].getBoolean("success"))
{
window.location.reload();
}
}
else
{
alert("Error!");
}
}// End try block
catch(err)
{
alert("Error creating task: " + err.toString());
}

I have a client whose hosting provider won't install the SOAP module for their PHP install, so bear with me.

 

Essentially I'm trying to loop through the output below and create standards variables for field names and their values.  I keep getting stumped because of the sObject reference.  I've tried flattening the array, but anytime I try and loop through it like a regular array or even a nest array, I'm hit by the fact that I can't address sObject in the same way.  What basic thing am I missing, some method of addressing the sObject -> addresses, but I'm just not getting it.

 

Any suggestions, much appreciated.

 

Thanks!

 

Chuck

 

 

Array ( [done] => true [queryLocator] => [records] => Array ( [0] => sObject Object ( [type] => Lead [id] => 00Q7000000WDBamEAH [values] => Array ( [FirstName] => Chuck YET another test record to leave [LastName] => Wyatt please leave for nurture testing [Email] => nurturetestagain@wordimpressive.com [VFS_Trial_Begins__c] => 2010-08-10 ) [fieldsToNull] => ) [1] => sObject Object ( [type] => Lead [id] => 00Q7000000WDBaXEAX [values] => Array ( [FirstName] => Chuck another test record to leave [LastName] => Wyatt leave for nurture testing [Email] => nurturetest@wordimpressive.com [VFS_Trial_Begins__c] => 2010-08-10 ) [fieldsToNull] => ) [2] => sObject Object ( [type] => Lead [id] => 00Q7000000WDBPLEA5 [values] => Array ( [FirstName] => Chuck more placement for nurture testing [LastName] => Wyatt leave this record for a bit [Email] => pleaseleave@wordimpressive.com [VFS_Trial_Begins__c] => 2010-08-10 ) [fieldsToNull] => ) ) [size] => 3 )

 

Hi all,

I want to create leads in saleforce via my company's website contact form, but I also want keep the form emailing to a specified email address. The form uses a standard php form to mail script, but after trying various other options including the ‘web to lead’ route, I cannot get round the single submission of the form to either source. Can anyone tell me if there is a way in php to do both??


Im just starting out looking at the API interface before we go ahead with the full deployment of our CRM as we have some custom requirements.
 
Ive been looking for this Office Toolkit so i can have a look at some Classic ASP examples and work from there, but i cant find it anywhere.
 
Does anyone have a link where i can download this file from, starting to drive me mad not being able to find it on here.
 
Cheers
 
Kris
  • April 21, 2008
  • Like
  • 0
We've tried to delete self service users by going to the Account record to which they are attached, in SF.com, going to the "Contacts" section and then hitting the Del link for the given record.  That makes them disappear from our listings, but they aren't really deleted, it seems. 
 
For example, if I use the API to query the record from the SelfServiceUser table, or if I use sforce explorer, I'm still seeing the records in our tables.  Why is that?
 
Thanks!
 
-Chuck
I've been doing some reading and I think I'm *almost* there.  I'm doing the following to attempt to use the lead assignment rules, but it isn't working -- I get NULL results. 

$leadassign = new soapval('autoAssign', 'boolean', 'TRUE');

    $contact = new sObject('Lead',
                           null,
                           array(
                               'salutation' => $_POST['salutation'],
                               'FirstName' => $_POST['first_name'],
                               'LastName' => $_POST['last_name'],
                                 'Company' => $_POST['company'],
                                 'email' => $_POST['email'],
                                'LeadSource' => $_POST['lead_source'],
                                'Street' => $_POST['street'],
                                'City' => $_POST['city'],
                                'State' => $_POST['state'],
                                'Phone' => $_POST['phone'],
                                'PostalCode' => $_POST['zip'],
                                'Country' => $_POST['country'],
                               'MobilePhone' => $_POST['mobile'],
                               $leadassign                           )                          
                          );
    $createResult = $sfdc->create($contact);
  print_r("\ncreate one: \n\n");
print_r($createResult);


Thanks for any help!!

Chuck
Hello,

My organization has a support portal with its own authentication (PHP5, mysql) outside of salesforce-- however, we would like to have  our users login with their Salesforce self-service support credentials to gain access to our site. How do I build a mechanism to authenticate users against their salesforce self-service accounts, and then upon success-- allow them access to our site? Thanks in advance!

Leon Yen
Inxight Software, Inc.
Hi there,
 
I'm using modified nusoap.php for PHP4.  Anyway, I'm trying to figure out the syntax to update a custom lead field.
 
I can find the unique identifier for the field in SF, but I get no joy when I added it to my update array. 
 
Am I waaaay off??
 
    // update Lead record
    $contact1 = new sObject('lead',
            $id,
            array(
                'Description' => 'My test',
         // this is the custom field right below here which equates to a checkbox in the SF interface.
       // I want it checked...  I've tried 1 and '1' but no dice:
      
         '00N300000016PAX' => 'TRUE',
 
   'Email' => 'cwyatt123@blahblah.com'
            ),                          
                array('Phone', 'Fax')
           );
    $updateResult = $sfdc->update($contact1);
    print_r("\nupdate one: \n\n");
    print_r($updateResult);
Thanks,
 
Chuck

Message Edited by chuckdubdub on 05-17-2006 03:47 AM

Message Edited by chuckdubdub on 05-17-2006 03:48 AM

We upgraded to an ISP with PHP5, only to find out that it isn't 5.1.2, rather it is 5.1.1.  Can we *not* take advantage of the Sforce.com PHP toolkit?
 
Thanks,
 
Chuck
The Self-Service Portal Toolkit for PHP 5 is now on sourceforge.net.  Download from https://sourceforge.net/project/showfiles.php?group_id=96634&package_id=188531

This toolkit makes it easy to embed the salesforce.com Self-Service Portal within an existing PHP web application. It comes with a sample, Berkeley Frozen Pizza, that demonstrates how a web site can authenticate a user and then access the salesforce.com Self-Service Portal seamelessly--all without the need for two sign-ons.

Keep in mind that this is a 0.9.0 release, so feedback is especially welcomed.

Changes in version 0.9.1:
=========================
* Updated to PHP5 toolkit 1.0.5
* Added missing Users.xml

Message Edited by Tran Man on 05-11-2006 03:32 PM

Hi,
 
I have noticed a difference between the way the API and Web-To-Lead work.  When creating a new lead via Web-To-Lead, we trigger the default assignment rule, which triggers an email notification to the sales rep.   When we create a new lead via the API, we trigger the default assignment rule but email notifications are NOT sent to the sales rep.  What is the reason for the difference between the two systems?  Is there any way to trigger the email notification from the API?   I have a client who desperately needs this functionality.
 
Thank you,
Scott
  • April 24, 2006
  • Like
  • 0
Hello all,
 
 
I've posted a message as a RE to another thread but I haven't got any answers. I've moved to NuSOAP library, PEAR::SOAP is two heavy for what i intend to do with.
So I wanted to create a new event linked with a lead.

error : INVALID_TYPE_ON_FIELD_IN_RECORD


--------------------------code-----------------------------
$event = new SObject ('Event', null , array('ActivityDate' => '21/03/2006',
                                                'IsAllDayEvent' => true,
                                                'IsRecurrence' => false,
                                                'OwnerId' => $id,
                                                'Type' => 'Call',
                                                'WhoId' => $WhoId,
                                                'ShowAs' => 'Busy' ) ) ;

    $createEventRes = $sfdc->create($event);

---------------------------/code---------------------------

I tried : gmdate(), date() in a lot of different format.

Thanks
  • April 16, 2006
  • Like
  • 0

Here's my query that I am using with php4 nusoap:

    $queryResult = $sfdc->query("select id, firstname, lastname, phone, description, fax from lead where id = '$id'");
    print_r("\nquery by id: \n\n");
    print_r($queryResult);

How do I just grab the value of "description" and assign it to a variable?  I'm guessing I need to loop through $queryResult as an array somehow? 

I tried setting a variable to $queryResult['description'] but to no avail!

Thanks!

Chuck

We want to re-write our Web-to-Case application so that we can better control error handling â¬? e.g. Salesforce not available â¬? and have a common code base for our other API applications.  One sticking point in our custom web2case design seems to be how to generate an auto-response email.  The auto response rules seem to require some hidden trigger in addition to the defined condition.  (We canâ¬?t use the Self Service portal because it is already being used for another purpose.)  Is there anything we can do to trigger an auto-response without running Web2Case or SS Portal?