0

I have a master-detail relationship where CustomA is the parent and CustomB is the child.

In the profile, CustomA has read access, while CustomB has read, create, and edit access. The OWD is set to private.

A user will manually share the record with another user with read-only access.

I want to grant edit access on the child record only when the parent's status field has the value "New." and restrict edit access it status has any other value.

How can I achieve this?

4
  • 1
    Do you have checked this? - help.salesforce.com/s/… -developer.salesforce.com/docs/… Commented Dec 27, 2024 at 5:08
  • Hi @TusharJadav, User sharing record using manual share shall we enforce that using sharing rules? Commented Dec 27, 2024 at 6:21
  • Hi @TusharJadav, If i allow public read/write it will give access to parent and child inherits the same access, but i want to give only edit access to child. Commented Dec 27, 2024 at 7:01
  • 1
    @TusharJadav you're right, the current configuration won't support the requirement to dynamically provide that access. You've got two options, either change the relationship to be a Lookup rather than Master-Detail or allow the access but add a validation rule that prevents any edits unless it is in the New status. Commented Dec 30, 2024 at 17:34

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.