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
JaredPHJaredPH 

help on custom button and record type

I would like to be able to have a button that creates a new task of one record type and another button that creates a task of another record type. I'm using it as a sort of clone of the standard "log a call" button. I would like users two buttons they can click rather than one button and then selecting the record type.

 

I founc the button hack using a URL reference, but for some reason this is really much slower than loading a VF page. Is there any way to pass the record type through a button without this URL button override?

 

Thanks for any help!

Rahul SharmaRahul Sharma

JaredPH,

 

You could use two custom buttons for creating task with 2 different record types.

They should have button type as url, over there pass the partial url of "log a call" button and append an extrra parameter for passing appropriate recordtype.

For example:

 

/00T/e?title=Call&what_id=001b0000002nz75&followup=1&tsk5=Call&retURL=%2F001b0000002nz75&recordType=XX
//replace XX with required recordtype Id