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
Natraj Subramani 15Natraj Subramani 15 

Custom Button Email URL Hack

Hi All,

I have created a new custom button to send email. I was able to modify the custom button url to defaul 
To Address

I was also able to default the from address using p26 option. The issue is I would like to default the value to one of the org wide email addresses set.

How do we set from address in the custom button URL to include org wide email address. I tried the below options.

&p26="" - This works fine but the from drop down shows the same value twice (one from ord wide and one from URL)

&p26={!$ObjectType.OrgWideEmailAddress} - When I specify id or name it says invalid
&p26="org wide id" - This only displays the id in the from field.

Any suggesitons, please let us know.