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
surya singh 9surya singh 9 

I am beginner : Not able to solve Trailhead challange for- Data Security:Define Sharing Rules

I am beginner : Not able to solve Trailhead challange for- Data Security:Define Sharing Rules

Project custom object records should only be seen by the owner of the record and users above the owner on the role hierarchy. However, for some Project records, the Training Coordinator must also have Read Only visibility to the Project record.
Create a custom picklist field on the Project object called “Priority” with the following values: High, Medium, and Low. Then create a criteria-based Sharing Rule for Project records where the Priority = High to share those records with the Training Coordinator role.
The custom object must be named 'Project' with a resulting API name of 'Project__c'.
The Name field for 'Project' must be of type Text (not Auto-Number).
The custom object 'Project' must have a custom field of type picklist named 'Priority' with a resulting API name of 'Priority__c'.
The role label should be 'Training Coordinator' with the resulting 'Role Name' of 'Training_Coordinator'. Note that you may already have this role in your role hierarchy from a previously attempted challenge.
The sharing rule can be named anything.
The organization-wide defaults for Project cannot be set to 'Public Read/Write'.
Best Answer chosen by surya singh 9
Amit Chaudhary 8Amit Chaudhary 8

NOTE:- OWD settings should be private and Grant Access Using Hierarchies should be checked

Please check below post. I hope that will help u
https://developer.salesforce.com/forums/?id=906F0000000B0uZIAS

In this challenge, it noted that the OWD should not be set to public read/write. I see you set yours to Public Read Only and you have the sharing rule set to Read Only. 
https://developer.salesforce.com/forums/?id=906F0000000AyojIAC

You sharing rule should be like below
User-added image

Let us know if this will help you

Thanks
Amit Chaudhary
 

All Answers

Medhya MahajanMedhya Mahajan
Hi Surya, 

This might be helpful :

https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906F0000000AyojIAC

If you still face a challenge, let me know.

Mark solved if it helps.

Regards
Medhya Mahajan

 
Amit Chaudhary 8Amit Chaudhary 8

NOTE:- OWD settings should be private and Grant Access Using Hierarchies should be checked

Please check below post. I hope that will help u
https://developer.salesforce.com/forums/?id=906F0000000B0uZIAS

In this challenge, it noted that the OWD should not be set to public read/write. I see you set yours to Public Read Only and you have the sharing rule set to Read Only. 
https://developer.salesforce.com/forums/?id=906F0000000AyojIAC

You sharing rule should be like below
User-added image

Let us know if this will help you

Thanks
Amit Chaudhary
 
This was selected as the best answer
surya singh 9surya singh 9
thanks
Mike WoolfMike Woolf
Thank you so much, Amit, I couldn't figure out where to do the priority=HIGH validation till I came across your screenshot.