+ Start a Discussion
debiken88debiken88 

Javascript button and permissions

Hi All,
I have an issue with a custom button that executes Javascript.  On the opportunity object, on button click it checks to see if there is a value in a custom field on the account object.   Works fine if the user is the owner of the account and the opportunity, but if another user owns the account the javascript appears to not be able to grab the value that is being evaluated from the account object.  I created a custom sharing rule on both  opportunity and account  for all internal users read/write access, still not working evaulating Javascript correctly.  Any input is greatly appreciated!
James LoghryJames Loghry
Can you post the Javascript and additional detail around the exception?  It's possible your referencing the wrong field / object in your javascript, which would explain why it only works for the Owner of the Account.  Otherwise, take a second look / third look at your sharing rules to very you have the parent Account shared properly.
Shohrat MuhamovShohrat Muhamov
Hello,

Did you find a solution for your problem? Would you be able to share if you did?

Thank you