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
vinsrivvinsriv 

requestin for access to see private record

hi,

 

i have requirement. it is fairly complex one.

 

there is one user who has one opportunity(created by him). he has set that opp to private.

 

now there is another user who should have request access button his opp page such that when he clicks that button an email should go to the opp owner.

 

if the opp owner approves it then the user can see that record.

 

it is a bit tricky. if anyone can sugeest me some tricks or code.

sfdcfoxsfdcfox

How would use the user click the button to request access if the record's access level is private? When a record is private, it can't be viewed by any user that doesn't already have access.

 

However, I could envision a Visualforce page that uses "without sharing" for the controller; this page would be able to show the user records they don't normally have access to. From here, there could be a button that could be clicked to kick off the email.

 

Then, you just need a second page, whose link is sent in the email. The user that receives the email could use this page to grant access; that is as simple as inserting a new OpportunityShare entry into the database.

 

 

vinsrivvinsriv

ok...now if the opportunity owner has made that record public read...then another user when logs in he should have a

 

request access button that opportunity detail page...if he clicks that button then mail should go to the opportunity owner

 

for approval...if he approves that then only that particular user should be able to see that record...

 

 

if any one can send me that coding...

vinsrivvinsriv

anyone with any idea???

vinsrivvinsriv

anyone with any idea...i am explaining again...

 

i am the opportunity owner and i have set opportunity to public read....now there is another user

 

who should have a request access button on his opp detail page...when he clicks that...an email

 

should go to me( i.e opp owner). if i approve then that particular user should be able to edit the record...

 

but the record should be public read only...

 

--------------------------------------------------------------------------------------------------------------

 

now i have created the button request access on the opp detail page...on clicking that mail is also

 

going but how to add button in the email-template....and then how to proceed?????/

 

 

 

please see if anyone can help...