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
jbardetjbardet 

custom e-mail button... was working, now errors?

I have a custom "Send an Email" button at the top of my opp page which basically just fills in a cc: address.

 

It was working fine for a couple of weeks and then all of a sudden the following error alerts for some of our users, but it is working for me (system admin). I have tried this using IE and Firefox, on a system admin account and a user account. On my machine it works but other users are receiving the error???

 

"A problem with the online Javascript for this button or link was encountered.
Object doesn’t support this property or method."

 

 

The code for the button is:

 

location.replace('/email/author/emailauthor.jsp?retURL=/{!Opportunity.Id}&p3_lkid={!Opportunity.Id}&rtype=003&p2_lkid={!Account.Id}&p4=sales@pioneer1.com&template_id=00XA0000000ebqS&p5=');

 

Anyone know why the error all of a sudden pops up?

 

Thanks!

Imran MohammedImran Mohammed

The first question i have is was it working for other users other than sys admin on your machine.

If it was not working on your machine, then try the following

1. For other users profile, check the API Enabled checkbox and try it.

2. If you are using Apex class, then give security access to the Profiles of other users.

 

If it was working for other users, paste the javascript code so that it will be helpful in identifying the issue.