You need to sign in to do that
Don't have an account?
murdoc
Onclick Java Sharing Rules
I have a custom link that executes a java script, the link takes you to a finance database. All the code seems to work fine, but the problem is we need only users who have access to the records (heirarchy) to have access to the link. Is there a way to add sharing rules to the coded link? Is there another way this can be accomplished?
What i was thinking was around the lines of inline visual force page with a link.
You create a visualforce page with the link and make it visible (by using rendered property) only to users with edit permissions. Which means you check for permissions in the VF page.
You then embed this visualforce page in the opportunity page.
I have not tried this but i think it should work.
Regards,
Satish Kumar
All Answers
Regards,
Satish Kumar
Thanks. It's open. We're just using the heirarchy. So, Opportunity owners and Opportunity Team members can edit opportunities. Everyone can read. So, we only want Opportunity Owners and Team members to see the data generated by the link.
What i was thinking was around the lines of inline visual force page with a link.
You create a visualforce page with the link and make it visible (by using rendered property) only to users with edit permissions. Which means you check for permissions in the VF page.
You then embed this visualforce page in the opportunity page.
I have not tried this but i think it should work.
Regards,
Satish Kumar
Thanks! I was actually thinking along the same lines. I will give this a shot now. I'll let you know if it works. If it does I will check as best answer. Thanks.
This worked, thanks!