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
Karen PannunzioKaren Pannunzio 

Custom buttons - log a call

I would like to have a custom log a call button on the opportunity record to update the stage.  This is a different page layout than the log a call button on the account page.  I do not want the user to have to select account task or opportunity task.  I want it to default to the account task when on the account record and default to the oppty task when on the oppty record.

I need help on the code for the custom button to default the correct task type.
SandhyaSandhya (Salesforce Developers) 
Hi,

See if you can get any insights from below links.

http://www.learnsmarter.com/ViewBlog?id=a0ta000000HFrvpAAD
 
Hope this helps you!

Thanks and Regards
Sandhya