+ Start a Discussion
JesseAJesseA 

Hiding record type from users

Is there a way to to compeltely hide a contact record type from view? Simply declaring a recordType and restricting it to only the profile that needs it does not seem to mean that other profiles cannot see the records.  The Account sharing model is public, hence the Contacts are public also. So trying to seperate via role wont work.  

 

I could create my own Contacts Related List custom visualforce page to use on Account page layout. But then users would still be able to search and find records of that type. So thats not a full solution. 

 

 

AmitSahuAmitSahu

Sharing rules will not work here ?

 

PaqsPaqs

Hi JesseA,

 

If you follow this link, you could use the sharing rules to accomplish this by either adding a custom field on the object you want to allow restrictions on and use the link's example / content to provide that functionality:

 

http://blogs.developerforce.com/developer-relations/2009/09/understanding-apex-sharing-rules-from-a-business-perspective.html

 

Hope this helps