in Technology by
How many ways we can share a record in Salesforce?

1 Answer

0 votes
by

With the help of the given below methods we can share records in Salesforce:

Role hierarchy:

  • Whenever a user is added to a role, the user above the current user in the hierarchy of roles will have access to reading the records and inheriting the permissions.
  • Follow the steps for role hierarchy: Go to Setup → find manage users' → roles → set up roles → click on ‘add role’ → provide name and click on save.

OWD:

  • OWD(Organization-Wide Defaults) allows you to give permissions to the organization-wide and to define baseline setting for the organization. It is also helpful in defining the user’s accessibility level to the user where a user can see other user’s records.
  • OWD settings can be Public Read Only, Private, Public Read, and Write.
  • Follow the steps for OWD: Go to Setup → find the Security Controls → click on ‘sharing settings’ → click on ‘Edit.

Manual sharing:

  • Manual sharing is sharing a single record/file to a single user or group of users through manual access.
  • We can see a button for manual sharing on the detail page of the record and it can be seen only when the OWD setting is private.

Criteria based sharing rules:

  • If we want to share records based on conditions such as share records with a group of users with the criteria of the country is India.
  • Follow the steps for criteria-based sharing rules: Go to Setup → security controls → sharing settings → select the object and provide name and conditions then click on save.

Apex sharing:

  • Sharing object is available for each and every object in Salesforce. For example, the Account object’s share object is AccountShare.
  • By using Apex, if we want to share the records then we have to create a record to the shared object.

Related questions

0 votes
    How many ways we can host a WCF service?...
asked Jul 26, 2021 in Technology by JackTerrance
0 votes
    How many ways we can achieve DevSecOps?...
asked Oct 27, 2020 in Technology by JackTerrance
0 votes
    How many relationships do we have in Salesforce?...
asked Nov 12, 2020 in Technology by JackTerrance
0 votes
    How can you create many to many relationships under salesforce? (1)Creating direct many to many relationships (2) ... (4)Not possible to create many relationships in salesforce...
asked Aug 26, 2021 in Technology by JackTerrance
0 votes
    How can you create many to many relationships under salesforce? 1. Using a piece of code to relate both ... in salesforce 4. Creating direct many to many relationships...
asked Jun 27, 2021 in Technology by JackTerrance
0 votes
    What are the different ways of deployment in Salesforce?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    In how many ways the letters of the word SACRED can be arrangend so that vowels come together ? A. 240 B. 120 C. 320 D. 720 Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
0 votes
    Threre are 9 red,7 white and 4 black balls in an urn. In how many different ways can the letters of the word RUMOUR ... 720 C. 30 D. 90 Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
...