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
ChristiaanChristiaan 

Is it possible to make a custom object 'Relationship' dependent on the standard Object Contacts?

Hello,

 

I have a question about using custom objects.

 

I Want to implement a custom object "relationship" that will be added as a related list in the Contacts page layout. Is it possible to set the rights of the custom object "relationship" in that way, that only the contact owner can add a relationship record for the contact person?

 

With kind regards,

 

Christiaan

MarkSilberMarkSilber

There are probably a few different ways to accomplish this, and you didn't mention in your post if users other than the owner should be able to edit or delete the relationship records, not just add them.

 

One way to prevent the addition of related records is to use a Validation rule that compares the current user to the owner of the contact (you can use the $User.Id variable and compare it to the OwnerId). Something like:

 

 

AND(ISNEW(), $User.Id <> Contact__r.OwnerId )

 

 

 

Message Edited by Mark Silber on 08-07-2009 06:36 AM
Message Edited by Mark Silber on 08-07-2009 06:37 AM