salesforce admin - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
SPRRUTIRAJ PANDASPRRUTIRAJ PANDA 

salesforce admin

Hi 
can any one help on beloww question ?
Q1-user 1 & user 2 has same profile and both are access Read,create,edit,delete, the requirement is user 2 can only read the data how to do that  in 2 ways.?
Q2-how many maximum no of Custom field is created in Un-limited edition ?
Q3-suppose u are a sales rep and m ur sales manager .i want to see ur opportunity data in personlly  not other can see the data  how to achieve this?
Q4-What are the migration tool used in Lighthing ?
Q5-how to control the picklist value of opportunity stage ,suppose the opportunity stage picklist value 7 nos but the requirement is to seeethe opportunity stage only 5 nos . how to achieve this .(without Record type )?
Q6-What is the main different between Lighting & classic environment?
 
Best Answer chosen by SPRRUTIRAJ PANDA
Krishna DadiKrishna Dadi
HI SPRRUTIRAJ PANDA,

First of all, if you enable  Modify all permissions at profile level then OWD and role hierarchies will not work anymore, The users with That particular profile will be able to view and modify all the records of the object in the Org. So in ideal scenario you  will not provide modify All at the profile level.

Consider  Custom sales rep profile having  read/edit/create/delete and
1) USER1 and USER2 want to see each other records and shall not edit each other records
           Option 1.   View All at the Profile level  , If you set View All at Profile level, then System will not consider your OWD and Role Herarchies , all users of the  Custom sales rep profile can see each other records
          Option 2:  Profile with Read Permission, OWD is public Read,  In the scenario, all the users with profiles having Read Permission on the Object will be able to see each other records, Note OWD across org not specific to Profiles.
        Option 3:  If you want to share records of users with specific Roles or in public Groups to the other users Users with specific Roles or in public Groups  then user Sharing Rules.
      Option 4: If User1 Role is above the User2 Role then you can use Role Hierarchy
      Option 5: Manual Sharing , User2 can share records with User1
      Option 5: Sharing With Apex, you can also share records with Users/Groups etc with Custom code. 

In your use case, you better go with Option 1 if User1 and User2 are on same role. If USER1 is above USER2 Role then go for Option 4

So choose which option is better for you . I encourage you to go through the Who See What series in youtube . 
https://www.youtube.com/watch?v=GOIPH0aLY0E&list=PLnobS_RgN7JbdH3SW3rvWu-8lE7WBeHxO

Let me know if you have any questions .

All Answers

Krishna DadiKrishna Dadi
HI SPRRUTIRAJ PANDA ,
FInd the inline answers to your question.

Q1-user 1 & user 2 has same profile and both are access Read,create,edit,delete, the requirement is user 2 can only read the data how to do that  in 2 ways.?
        -->  Use Validation Rules to restrict the edit and delete, Useally he can edit, delete his own records if he has Edit and Delete at profile , However, you can control how he can access other records using OWD,Sharing Rules and role hierarchies
Q2-how many maximum no of Custom field is created in Un-limited edition ?
           ->  https://developer.salesforce.com/forums/?id=906F00000008jylIAA
Q3-suppose u are a sales rep and m ur sales manager .i want to see ur opportunity data in personlly  not other can see the data  how to achieve this? ->  Role Heirarchies if he is above your Role , otherwise if he is manager on your user record then  use Sharing Rules
Q4-What are the migration tool used in Lighthing ? component Migration: ANT,change sets, SFDX,copado,fusum, VSTF etc , Data Migration : Talend, Data Loader, Informatica etc..
Q5-how to control the picklist value of opportunity stage ,suppose the opportunity stage picklist value 7 nos but the requirement is to seeethe opportunity stage only 5 nos . how to achieve this .(without Record type )?
   ->  Through Sales Process
Q6-What is the main different between Lighting & classic environment?   => Lightning is Mobile friendly and Lightning components Mobile Responsive , Good UI, arguably Speed
https://www.algoworks.com/blog/difference-between-salesforce-classic-and-salesforce-lightning/#:~:text=Enhanced%20User%20Experience,be%20achieved%20without%20any%20code.
SPRRUTIRAJ PANDASPRRUTIRAJ PANDA
@ krishna
 One confusion is there in Q1-
suppose User 1 profile is Custom sales rep
               User 2 profile is Custom sales rep .(BOTH ARE SAME PROFILE)
and they both are read/edit/create/delete /view all/modifyall permission are there.
But Scenario is USER 1 wants USER 2 only permission is read Only .So in that case what answer is correct .
Answwer-1 OWD -private,And profile -Read only
Answer-2 By useing Role hierarchies.
Krishna DadiKrishna Dadi
HI SPRRUTIRAJ PANDA,

First of all, if you enable  Modify all permissions at profile level then OWD and role hierarchies will not work anymore, The users with That particular profile will be able to view and modify all the records of the object in the Org. So in ideal scenario you  will not provide modify All at the profile level.

Consider  Custom sales rep profile having  read/edit/create/delete and
1) USER1 and USER2 want to see each other records and shall not edit each other records
           Option 1.   View All at the Profile level  , If you set View All at Profile level, then System will not consider your OWD and Role Herarchies , all users of the  Custom sales rep profile can see each other records
          Option 2:  Profile with Read Permission, OWD is public Read,  In the scenario, all the users with profiles having Read Permission on the Object will be able to see each other records, Note OWD across org not specific to Profiles.
        Option 3:  If you want to share records of users with specific Roles or in public Groups to the other users Users with specific Roles or in public Groups  then user Sharing Rules.
      Option 4: If User1 Role is above the User2 Role then you can use Role Hierarchy
      Option 5: Manual Sharing , User2 can share records with User1
      Option 5: Sharing With Apex, you can also share records with Users/Groups etc with Custom code. 

In your use case, you better go with Option 1 if User1 and User2 are on same role. If USER1 is above USER2 Role then go for Option 4

So choose which option is better for you . I encourage you to go through the Who See What series in youtube . 
https://www.youtube.com/watch?v=GOIPH0aLY0E&list=PLnobS_RgN7JbdH3SW3rvWu-8lE7WBeHxO

Let me know if you have any questions .
This was selected as the best answer
SPRRUTIRAJ PANDASPRRUTIRAJ PANDA
@ krishna 
Thanks For ur help
yes i cleared this