You need to sign in to do that
Don't have an account?
mill1012
Syntax for creating task from lead Activity related list
Creating a custom button to create a task from Activity History related list under leads. So far I have this working as a Custom Button to create the task with the related to Lead:
https://na7.salesforce.com/00T/e?retURL=%2F00320000001jWar&who_id={!Lead.Id}
Now I want to pass a default user as the Assigned to, define the subject, comments and other fields. What is the syntax for doing these things?
First please use relative path/URL
/00T/e?retURL=%2F0032000001jWar&who_id={!Lead.Id}&
Please find attached the code and please see if it works :-
/00T/e?who_id={!Lead.Id}&tsk1_lkid=UserId&retURL=%2F0032000001jWar
where userid =$User.id
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
I am not sure how to insert the code you suggested. I've tried many combinations, but none successful. Here is my original code. Is tsk1_lkid supposed to = the users object ID?
https://na7.salesforce.com/00T/e?retURL=%2F00320000001jWar&
who_id={!Lead.Id}&retURL=%2F0067000000IF9ym&
tsk5=Credit+Check+Request&
tsk1_lkid=00570000001GaI5&
tsk1=Bruce+Merles&
tsk10_lkid=00570000001GaI5&
tsk10=Credit+Check+Request&
email_lkid=00570000001GaI5&email=1
Not sure how/where i am supposed to use the relative path/URL
thanks