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
AbAb 

Seperaating data for clients

Hello,

I have a App with
standard objects, custom objects, view
triggers, apex classes,

this app is accessed by many a client.

I have need to implement same for other client, but i want that only his data is visible to client and other client must not see his data.

I thought of first implement new fields,
But htis will not work as the application is big and all the triggers will not be bale to be matched prperly.

Any suggesions ?

thank you
Best Answer chosen by Ab
Dan ErvinDan Ervin
You are looking for Sharing Rules. If you set your Organization Wide Defaults to private for the objects, you can extend access to roles or public groups based on criteria on the record.

As an example, if you had a picklist field that determined which client should see an account, you would create an account sharing rule that gave read permission to users within the public group you've created based on the contents of the picklist field.

User-added image