function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
amyamyamyamyamyamy 

Pre-populate task phone with either contact's phone or account phone

Is this possible?

When a task is created from a contact, Phone number is pre-populated with the contact's phone. When a task is created from an account, Phone number is pre-populated with the account's phone.

 

Any help is greately appreciated!! Thank you!

Best Answer chosen by Admin (Salesforce Developers) 
Saurabh DhobleSaurabh Dhoble

A. Create a custom button

B. The URL for the custom button should look something like this --- 00T/e?{"ID"={!Account.Phone}}

 

Read this post for details on URL hacking - http://writeforce.blogspot.com/2012/12/prepopulating-fields-using-url-hacking.html

 

All Answers

Saurabh DhobleSaurabh Dhoble

A. Create a custom button

B. The URL for the custom button should look something like this --- 00T/e?{"ID"={!Account.Phone}}

 

Read this post for details on URL hacking - http://writeforce.blogspot.com/2012/12/prepopulating-fields-using-url-hacking.html

 

This was selected as the best answer
amyamyamyamyamyamy

Thank you very much, Saurabh!