You need to sign in to do that
Don't have an account?
falkson
Associating a Task with a Lead
Hi,
I'm trying to associate a task with a lead. When I look at the field listing for a task it shows...
Lookup(Account,Opportunity,Case,Campaign,Contract,Solution,Product,Asset,Script)
i.e. No Lead.
Also when you drill down it says the name of the field is What.
When I attempt to insert the task using the Lead ID I receive the following error.
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
Any help would be appreciated.
Regards
Mike
Mike Leach
Create a new Task sObject and set the WhoId to the Lead. WhatId must be left empty when Tasks are associated with Leads.
falkson
Thanks Mike.