1

Let suppose I have created one record . On this record there is lookup to user. whichever user I will select on this record that user able to see the record when he login in salesforce. How to acheive this.

0

Assuming the OWD of the object is Private for which the record is getting shared.

Since the record will be shared to the user when lookup (User) is selected, so you need to create Apex managed sharing for this record to be shared to user during saving this record.

Refer Sharing a Record Using Apex

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.