文质彬彬的蟠桃 · 解锁Mysql中的JSON数据类型,怎一个爽 ...· 1 周前 · |
考研的包子 · nginx之"/"结尾 - 凯-子 - 博客园· 5 天前 · |
豪爽的生菜 · Java之static作用的全方位总结 - ...· 4 天前 · |
不拘小节的米饭 · Tutorial: ML ...· 3 天前 · |
风流倜傥的脆皮肠 · react环境变量_react ...· 9 小时前 · |
威武的蜡烛 · CentOS 7.4部署MariaDB ...· 12 月前 · |
满身肌肉的保温杯 · 如何:创建 CLR 空项目 | ...· 1 年前 · |
逆袭的红酒 · 代谢可塑性可增强生态系统对全球变暖的反应 ...· 1 年前 · |
温柔的炒粉 · 锋利的SQL2014:基于窗口的分布计算_Z ...· 1 年前 · |
个性的豆浆 · python生成csv文件循环写入 ...· 1 年前 · |
May I suggest you please follow the below steps to complete challenge 2 of the security specialist super badge.
1. Navigate to "Sharing Settings"
2. Edit "Organization-Wide Defaults" and set "Opportunity" to private in the drop-down menu and save.
3. Scroll down to "Opportunity Sharing Rules" and click "new"
Rule1.
1. Label can be anything you like
2. Rule type = "based on criteria"
3. Field = Type, Operator = Equals, Value = Existing Customer - Upgrade (the last one will be in the lookup using the icon right next to it)
- the second field will be: Field = Stage, Operator = Equals, Value = Closed Won (also use the lookup icon)
***Make sure you created a public group called "Project Managers" prior to this step if you haven't already***
4. "Share with" should be "Public Groups" in the first drop-down, and "Project Managers" for the second drop down.
5. Opportunity access should be set to "read-only"
Rule 2.
1. Label can be anything you like
2. Rule type = "Based on Record Owner"
3. Opportunity: owned by members of = Roles and Subordinates, and choose Sales Executives for the second drop-down menu
4. Share with: Roles, and choose Inside Sales Users for the second drop-down menu
5. Opportunity access should be set to "Read/Write"
Save both of these rules.
Type "Apex" into your quick search and choose Apex Test Execution
- Click Select Tests
- Choose "All namespaces" from the drop-down menu
- Choose "BeAwesome" and click run.
Your results should be 2/2.
Now navigate to the app launcher, and launch the "Sales" tab, and click on "Opportunities"
1. Click New
2. Name the opportunity anything you want
3. Choose Stage "Needs Analysis"
4. The close date should be picked as a value in the future.
5. click save
6. Create another "New" opportunity and name it anything you'd like again
7. For type, select "Existing Customer - Upgrade"
8. Set the date as whatever today's date is
9. Set the stage to "Closed Won"
10. Save
Now we need to make these opportunities owned by your user "Samantha Cordero"
1. Open the first opportunity you created, and click on the details tab
2. Under "Opportunity Owner" select "Change Owner" and change it to Samantha Cordero
3. Repeat steps 1-2 on the second opportunity.
***You might run into a bug where it doesn't allow you change the ownership to Samantha Cordero***
if this happens, you need to edit the "Field Users Profile" you created by going into it's "Object Settings" and setting the Read/Create/Edit configuration outlined in the Super badges Field Sales User Outline.
It's very important that you set up the previous opportunities, or the error will still throw.
Once the opportunities are created and you have configured everything else, the error will be gone.
TADA! You just passed step 2!!
If you have any more questions, feel free to ask
Kindly mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.
Thanks,
Nagendra
Thanks for all of the help! I ran the test and the results are 0/2. I installed the Trailhead Superbadge package before I started the project. Here are what the details say:
Hello everyone,
Just like Frankie Collyer I`m having issues with the Apex Test. I was getting 0/2 just like him. Currently I`m getting 1/2, but still not able to complete successfully the test. Anyone having the same issue?
Thanks!
It`s again me :)
Just now was able to successfully pass the Apex test. I found why I wasn`t able to do it before and why at some point i was able to pass one of the two. The apex is related to the sharing rules for the Opportunity object. They have to be created first before Apex can be executed successfully.
I created the Public group " Project Managers" but when i am tring to creat Shareing Role "Project Managers" is not poping-up form the "Public Groups" drop down list. ( Project Managers is a public group).
Anyone having the same issue?
Could you please share a screenshot with the PG that is being setup and also a screenshot from the window you're setting up the sharing rUle? The only reason I could think of is you've been logged to the wrong environment. It happens sometimes.
PG stands for Public Group. Did you verify that you`ve created the public group and you did that in the same environment? Please double check the same.
Can someone help me to complete this badge,
I followed all the steps above but still I am having the same issue.
Can someone tell me why this error encountering again & again.
Also I have another issue with Apex test,
There I cannot find out "BeAwesome" test.
I tried soooooo much but I couldn't find the solution.
Please help me?
Is there anything wrong in my roles,profiles & other users or something?
But I created them correctly?
Nagendra
I done all steps but I cannot test my class:
2. Edit "Organization-Wide Defaults" and set "Opportunity" to private in the drop-down menu and save.
3. Scroll down to "Opportunity Sharing Rules" and click "new"
Rule1.
1. Label can be anything you like
2. Rule type = "based on criteria"
3. Field = Type, Operator = Equals, Value = Existing Customer - Upgrade (the last one will be in the lookup using the icon right next to it)
- the second field will be: Field = Stage, Operator = Equals, Value = Closed Won (also use the lookup icon)
* **Make sure you created a public group called "Project Managers" prior to this step if you haven't already***
4. "Share with" should be "Public Groups" in the first drop-down, and "Project Managers" for the second drop down.
5. Opportunity access should be set to "read-only"
Rule 2.
1. Label can be anything you like
2. Rule type = "Based on Record Owner"
3. Opportunity: owned by members of = Roles and Subordinates, and choose Sales Executives for the second drop-down menu
4. Share with: Roles, and choose Inside Sales Users for the second drop-down menu
5. Opportunity access should be set to "Read/Write"
Save both of these rules.
Pending
Type "Apex" into your quick search and choose Apex Test Execution
- Click Select Tests
- Choose "All namespaces" from the drop-down menu: I cannot select "All namespaces"
- Choose "BeAwesome" and click run.
Your results should be 2/2.
I installed the Trailhead Superbadge - Security, but it is Not Passed in AppExchange Ready
It could be the problem?
Click on Developer Console.
You should be able to see the result/status under the Tests Tab.
Hope that helps!:)
Error :- System.QueryException: List has no rows for assignment to SObject
Stack race :- Class.sb_security.BeAwesome.createUser: line 133, column 1 Class.sb_security.BeAwesome.setup: line 124, column
Please help
Thanks,
Hussain
Wonder if this thread is still active, I came across it when looking to solve an issue i faced in the 2nd step of the "Security Specialist" Superbadge and found that other people faced the same issue but didn't find the answer here.
Fortunately i managed to find the problem after trying for several days, and i am sharing it with you guys to save you some time, so for people who couldn't pass the tests because of the following error : Challenge Not yet complete... here's what's wrong: The unit tests in the managed package have not passed successfully. Make sure you run all test in your org before checking this section. Ensure that they all pass. And on the developer console the error message : System.QueryException: List has no rows for assignment to SObject The error message is not precise and the fail message on the challenge is not pointing towards the problem as well.
And the problem for me was that i had the name of a profile wrong, or at least not as expected by the assertEquals method, i had a profile named "Sales Executive User" instead of "Sale Executive User". And that's why the query was returning no rows in the test and hence the exception.
Not easy to spot, especially since you don't expect a problem for roles and profiles after you pass the first step, but very easy to solve, so for those of you facing the same exception, verify the names of your roles, profiles, users ... and make sure they match the ones in the challenge.
Good luck for you all.
As I progressed through the steps, I suddenly found myself on steps 3&4 and was unable to continue as I could not select Sales Executive from step 3 below:
3. Opportunity: owned by members of = Roles and Subordinates, and choose Sales Executives for the second drop-down menu
I was also unable to select Sales Users for step 4.
4. Share with: Roles, and choose Inside Sales Users for the second drop-down menu:
Let me know how I can populate the Sales Executive and Sales Users.
In the mean time, I’ll continue to search for others who may have encountered this issue from either this Superbadge Challenge or previous Challenges.
On a related note, I selected Edit from the Sharing Settings page as I read from Bohdan Savchuk's post who had " All Internal Users " about to be selected.
In an effort to replicate this in order to move forward I selected Manual User Record Sharing and Manager Groups , which could have been a mistake. See lower rigth corner of screenshot.
After noticing I cannot make the changes, I went to reverse the edit back to what it was previously, but I cannot select the Manager Groups check box.
Can I continue from here? Pls confirm. Thank you.
Same with Inside Sales User: view, create, and edit all accounts and opportunities (but not delete them). Do they mean ALL or All under the Sales Executive Role? If it is under the Sales Executive Role they should make that clearer.
In both cases its a matter of changing the Sharing rule to apply to "All Internal users" or "Roles and Subordinates: Executive Sales Role".
Anyone know for sure? I can't get my test to pass anway but I would like to rule this out. My error is: System.QueryException: List has no rows for assignment to SObject.
@Courage Worldwide
check my answer two comments up, you should verify that you named your users, roles, profiles ... correctly
Don't know if you guys can solve the Security Specialist Superbadge Challenge 2 or not. But I today I solved the problem. Yah!! I am excited to share the process that I follow.
A big thanks to Nagendra for showing me the path.
But there are some issues with this. Few things are not cleared.
So, here I write down what I do.
1. Create the public group where I assign only the project manager.
2. Create the new opportunities that required for the challenge.
Here comes the tricky part of the challenge.
3. I create 3 "Opportunity Sharing Rule" to pass the "Apex Test Execution"
Criteria Based Rule - (Stage Equal Closed Won) & (Type Equal Existing Customer - Upgrade). This is read only. I shared this with the project manager through public group that I created
Record Owner Based Rule - Record Owner (Role: Field Sales) & Shared With (Role: Inside Sales). This is read/write.
Record Owner Based Rule - Record Owner (Role and Subordinate: Sales Executive) & Shared With (Role: Inside Sales). This is read only.
4. Check "Apex Test Execution". I hope if you follow all the steps i mentioned you will pass the test.
Hope you guys follow the steps and pass the challenge 2.
Let me know you pass or not.
Thanks
Arpon
You give them all salesforce platform access and deactivate users by alternating between them, while having only two active users at any single time. Only the admin should be active all the time.
Good luck.
Could not find a user named Samantha Cordero with the Field Sales User profile. " .
I created user Samatha Cordero and logged in as Samatha and created 2 opportunities but still getting this message.
Hello Everyone I PASSED CHALLENGE 2!
So what I would suggest it check Developer Console -> Logs after clicking check challenge.
There will be a step like below.
Assertion Failed step with operation /services/data/v36.0/tooling/executeAnonymous is the log for trailhead tests.When you click on it Execution Log will open and operations will be listed from earliest to latest.
Check the log and see after what operation assertion fails.
For me, assertion failed because it could not find any opportunity with a tempuser.Then I checked my opportunities and they were really created under sysadmin name , their owner was not 'Samantha Cordero'.
After I changed the owner to Samantha it worked.
Inside Sale User Profile:
I set it to this rule at Account, And I got it pass eventhough the instruction seemed to suggested something differently.
I basically set View All and Modify Alll checked. And then all test pass.
Stuck on this
Challenge Not yet complete... here's what's wrong:
The sharing rule that shares Opportunities owned by Field Sales users with Inside Sales users does not appear to be setup correctly.
pls suggest me what did i wrong ??
Also, when i try to run the Apex test I cant find "beawesome"
Please help, thank you!
Field Sales USer Profile - Opportunity - View all
apex 2 test should be pass
Add Role Sales Executive in CEO
make sharing role like this
run apex test suite- shouls be run 2 test method
then make that two opportunity record
change owner to Samantha...........
hope it will help...
I have pass 0/2 in apex test.
I've created Samantha Cordero.. Assigned her Field Sales Role, and assigned her needs analysis and closed won opportunities.
Sharing rules:
Field Sales User:
Inside Sales User:
Sales Executive User:
Unable to pass tests for 2nd Challenge for Security Specialist Superbadge.
Using Apex Test Execution --
Error Message:
System.QueryException: List has no rows for assignment to SObject
Log Details (from Dev Console):
10:57:19:010 SOQL_EXECUTE_BEGIN [132]|Aggregations:0|SELECT Id, Name FROM Profile WHERE Name = :tmpVar1
10:57:19:015 SOQL_EXECUTE_BEGIN [133]|Aggregations:0|SELECT Id FROM UserRole WHERE Name = :tmpVar1
Details of my configuration -
Roles : Field Sales, Inside Sales, Sales Executive User
Active Users:
Cordero, Samantha with Role as Field Sales and Profile as Field Sales User
Myself as the System Admin
Public Group:
Project Managers - Field Sales Roles, User = Samantha Cordero
*Test Opportunities are owned by Samantha Cordero*
Sharing Settings:
Opportunities
This is driving me crazy because I feel like I have done every possible thing with no successful outcome, several times.
Is there something wrong with my configuration settings? Is there something else I should be looking at?
Very lost at this point. Should I try uninstalling the package and re-installing? Or...
Please advise, thanks!
I had tried everything mentioned in this thread before I decided to comment.
I have the same exact Users, Role names, and Profile names in setup, provided from the Challenge. Per your advice, I have one sharing rule now - the Opportunity criteria-based one.
The Role Names and their Labels match, too.
Getting this error still:
Error Message: System.QueryException: List has no rows for assignment to SObject
Stack Trace: Class.sb_security.BeAwesome.createUser: line 133, column 1
Class.sb_security.BeAwesome.setup: line 127, column 1
I don't know where this is pulling from and i'm not a developer so it's not easy to comprehend.
Hmm..
error message...
Challenge Not yet complete... here's what's wrong:
We couldn't find the Sharing Rule that shares Opportunities owned by Field Sales users with Inside Sales users. Please check if the setup of this Sharing Rule is correct.
I am facing trouble while assigning the owner to samantha cordero and while configuring the opportunities I am not able find the roles as inside sales user.
can anyone help me with these steps. I am stuck up.
Rule 2.
1. Label can be anything you like
2. Rule type = "Based on Record Owner"
3. Opportunity: owned by members of = Roles and Subordinates, and choose Field Sales (not sales executive) for the second drop-down menu
4. Share with: Roles, and choose Inside Sales Users for the second drop-down menu
5. Opportunity access should be set to "Read/Write
I have all three rules and it passed apex test
Can anyone help me please.
I am not getting 'BeAwesome' test with the 'sb_security' under Apex Test Execution in my Trailhead Playground. But, when i loginto my developer account I am able to find the same.
What should i do please suggest. Stuck on this
Thanks
@Muhammad Hairullah
Hi,
It seems like both your opportunities created are with same name try adding 1 & 2 in the end, and I also see that both your opportunities are in 'Closed Won' stage. Make one opportunity (Ex. Opportunity-1) stage to 'Need Analysis'.
Please let me know if you still have issue.
Regards,
Sanjay.
Hi,
Do you have multiple playgrounds? If yes, when you try to install the managed package. By default, the installation will be directed to the 1st playground. So just change the URL with your current playground and try installing it.
Also, you can check if the installation happened in the right playground as below:
Setup>Apps>Packaging>Installed Packages or just search 'Installed Apps'. There you should see the package installed. Otherwise, my above assumption is right.
Please let me know if you need more assistance.
Regards,
Sanjay
Hi,
Do you have multiple playgrounds? If yes, when you try to install the managed package. By default, the installation will be directed to the 1st playground. So just change the URL with your current playground and try installing it.
Also, you can check if the installation happened in the right playground as below:
Setup>Apps>Packaging>Installed Packages or just search 'Installed Apps'. There you should see the package installed. Otherwise, my above assumption is right.
Please let me know if you need more assistance.
Regards,
Sanjay
Hi,
Try changing the second Opportunity Sharing Rule to Read/Write (In your case, it is S2). And for the 'Public Group' try adding the User "Carla Rodriguez". Please let me know if you need more assistance.
I followed all the steps given by trailhead and after the answers given in developer Forum also i can't pass my TestRun in Apex test Execution.
The error in Developer Console is:
I hope all the permission gave correctly. Can someone help
I am facing error in Apex Test Execution. Please help me out
I'm facing this error:
Challenge Not yet complete... here's what's wrong:
We couldn't find the Opportunity record owned by Samantha Cordero with the expected Stage. Please make sure the record exists and it contains the correct values according to the requirements.
My Apex Tests pass.
I have created the opprtunities when logged in as Samantha:
I have been stuck here for hours, and have tried all advice from here already.
Please, any help would be highly appreciated!
Br, Salla
I am facing this error:
and I am not able to pass the test class successfully.
Sharing Rule is:
User :
Role:
Please help me with this
Regards
Sarwer
One class is passed but the other is failing and giving me this error. i stuck for long enough. please help me out
While creating Rule 2, I am not able to see the custom roles/profiles under drop-down menu of Opportunity: owned by members of for Roles and Suboridnates value. Please help/suggest how to populate required values under this list.
Could sombody help to resolve the below error pls.
Challenge Not yet complete... here's what's wrong:
We couldn't find the Sharing Rule that shares Opportunities owned by Field Sales users with Inside Sales users. Please check if the setup of this Sharing Rule is correct.
Thanks,
Sasikumar
I've been having the same issue to others for days and can't resolve it. i have created the roles, profile, opportunities, sharing rules, public group and the user but cant seem to get it to work.
Please help!
Thanks
I have tried all the steps but could not pass the test run, also vreated new trailhead twice but no luck, stuck form past 3 days
Could some one please tell be what should be the exact name for Roles ,
For Profile I have given the below Names:
1. Field Sales User
2. Inside Sales User
3. Sales Executive User
It will be highly appricate, if you could share the screen for the steps of sharing rules as well.
Thanks in advance.
I have assignes "Users in this role can edit all opportunities associated with accounts that they own, regardless of who owns the opportunities" as opportunity access.
You profile names look the same as mine, so not sure whats going wrong there.
for the sharing settings, i've include a screenshot below and you need to ensure that 'Opportunity' is set to private.
Thanks
If you look on the breif on the Security Specialist Superbadge, youll see it has headings for Field Sales User Requirements, Inside Sales User Requirements and Sales Executive User Requirements. You need to create profiles for each of these (Field Sales User, Inside Sales User and Sales Executive User) then assign the permissions it says under.
Field Sales User
Inside Sales User
I have to create the 4th sharing Rule where objects owned by all internal user are shared with Internal Sales user. Also need to pass the test before creating the opportunities owned by Samantha.
System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [SolarBot__c]: [SolarBot__c
one of my apex test cases is not running, i would really appreciate if someone could look into this.
@Ahmed Djallel BOUISRI
Thanks so much for pointing me in the right direction.
I had the same error
Error MessageSystem.QueryException: List has no rows for assignment to SObject
Stack TraceClass.sb_security.BeAwesome.createUser: line 133, column 1
Class.sb_security.BeAwesome.setup: line 125, column 1
Turns out I had named my Inside Sales Role "Inside Sales User" (same for executive), and the APEX specifically looks for the "Inside Sales" role name. This might have been worth pointing out in the instructions or error somewhere.
The Oh and I did set the OWD as instructed in the first couple of comments. one thing I'm not 100% sure I have correct is the role structure. I have sales executive reporting to CEO, and both inside and field sales reporting to the executive role. Is this correct? I also realized that I forgot to put in some of the profile restrictions such as where the inside sales users are allowed to login from. I could fix this but I'm not sure if doing so would mess this up.
.
Hello All,
can anyone help me with the following. I'm facing issues while running the test for security specialist superbatch
System.QueryException: List has no rows for assignment to SObject
(sb_security)
We couldn't find the Sharing Rule that shares Opportunities owned by Field Sales users with Inside Sales users. Please check if the setup of this Sharing Rule is correct.
Can Someone please help me!!!!!!
I am stuck at Challenge 2.
I cannot find the BeAwesome class. Can someone please tell me the steps from the beginning to end so that I can verify if I have done the right thing???
Thank you so much in advance!!
Hey Madhura,
After creating two Opportunity Records owned by Samantha. and proper assigning roles.
Navigate to setup
Enter Apex Test Execution
In all Namespace (prerequisite: You must have to install managed package provided by Trailhead)
then only you'll find BeAwesome class.
Let me know if this helped
Everything is done. Still cannot pass it. :(
I will tell the steps that I have done.
1) Installed package
2) Created 3 profiles
3) Created Roles
4) Created User Samantha Cordero and assigned proper role and profile.
5) Created Public group "Project manager"
6) Made OWD private for Opportunites
7) Created 2 Opportunity Sharing Rules and 2 Account Sharing rules
---Account Sharing Rules---
Criteria : Owner in Role and Subordinates: Sales Executive User
Shared With Role: Field Sales User
Account and Contract : Read/Write
Contact : Private
Opportunity : Private
Case : Private
Criteria - Owner in Role and Subordinates: Sales Executive User
Share with - Role: Inside Sales User
Account and Contract - Read/Write
Opportunity - Private
Case - Private
Contact - Private
---Opportunity sharing rules---
1)
> Criteria:
- Type equals Existing Customer - Upgrade
- Stage equals Closed Won
>Share with Group: Project Managers
>Opportunity Access: Read Only
2)
Opportunity: owned by members of - Role and Subordinates: Sales Executive
- Share with - Role: Inside_Sales
> Opportunity Access: Read/Write
Apex test Execution
Cannot find BeAwesome class
Please help??
I just cleared the challenge 2 and I wanna share 2 tips to you to avoid getting 0/2 resulst in the Apex test.
1.Before you run the Apex test, please create opportunity sharing rules in advance.
2.Please check whether the profile name, role name and user name you created is compeletely the same as the challenge requirement.
Spelling error or any name differentce seem to lead to the 0/2 result too. For example, the required role name is 'Field Sales', if you input 'Field Sales users' for the role name, it may also not let you pass the Apex test.
Hope you'll clear the challenge soon!
I am also getting the error like this
System.QueryException: List has no rows for assignment to SObject
Stack TraceClass.sb_security.BeAwesome.createUser: line 132, column 1
Class.sb_security.BeAwesome.setup: line 124, column 1
here i put the all names are correctly as per requirement
I am facing below error. I cant pass the sb_security Awesome Test. Kindly help me
Hope this helps someone.
I'm assuming you've set up all the sharing rules correctly because there are plenty of solutions guiding you.
If you're still failing the Apex tests like I was, look into how you named your roles. As silly as it sounds, that finally got me to pass my Apex Tests.
My profiles were named as suggested in Challenge 1.
Field Sales User, Inside Sales User, and Sales Executive User
I named my roles the same way, which was causing my Apex tests to fail. After changing my roles to
Field Sales, Inside Sales, and Sales Executive... I was able to pass the Apex Tests.
P.S. Remember to change both the field name and field label in order to update the roles.
This is what I am getting as an error!
More clear this way!
I've completed all the requirements of Step 2 and apex tests are not throwing error. I logged in as Samantha(Field sales User ) and created 2 opportunities as per requirement but still getting error "Challenge Not yet complete... here's what's wrong:
We couldn't find the Opportunity record owned by Samantha Cordero with the expected Stage. Please make sure the record exists and it contains the correct values according to the requirements."
I am stuck here since yesterday and not able to resolve. Any suggestions on this or someone experienced the same issue?
Needed urgent help!!
Hi, i am also stuck here.
But i am stuck on the test Be Awesome not passing. Maybe we can help each other?
Did you create the opportunities? Pls take a screen shot ?
Did you also make the PM permission set`s?
Challenge Not yet complete... here's what's wrong:
Could not find a user named Samantha Cordero with the Field Sales User profile.
Close errors
When I look about the requirements I see that this superbadge require 3 licenses which is not available in the dev environment, one for the sys admins and the other 2 for the other two users (Carla Rodriguez & Samantha Cordero) not sure about the one who were successful in this have?
Also Apex test Execution always failed for me 0/2 all the time.
Anyone can advise me with this issue while i am testing i can't able to find BeAswome Class name But i have test in that through Developer console....
Error :- System.QueryException: List has no rows for assignment to SObject
Stack race :- Class.sb_security.BeAwesome.createUser: line 133, column 1 Class.sb_security.BeAwesome.setup: line 124, column
I was facing "System.QueryException: List has no rows for assignment to SObject" error too with challenge 2. I found out that I had to name the Roles correctly without the 'user' at the end. like 'Field Sales','sales Executive' and 'Inside sales'. I could get the apex tests passed after correcting the roles. Hope this helps!!
1) Add roles for Field Sales,Inside Sales, and Sales Executive under setup -> Roles->VP,International Sales
2) Create a public group called "Project Management" and select roles and subordinates of VP, International Sales
3) Add two new opportunity sharing rules as we have made the Opportunity object restrictive by selecting "Private" in object wide defaults
I have pasted the screenshots here below
-
I removed 's' from the role name of Sales Executive(s) and it works finally. (Jesus Christ!)
I continue to get the same error everytime I run it. I have created two playgrounds adn still get the same results.
Here is an image of my error within both playgrounds:
Please hlpe me figure this out. Thanks!
2. Edit "Organization-Wide Defaults" and set "Opportunity" to private in the drop-down menu and save.
3. Scroll down to "Opportunity Sharing Rules" and click "new"
Rule1************.
1. Label can be anything you like
2. Rule type = "based on criteria"
3. Field = Type, Operator = Equals, Value = Existing Customer - Upgrade (the last one will be in the lookup using the icon right next to it)
- the second field will be: Field = Stage, Operator = Equals, Value = Closed Won (also use the lookup icon)
***Make sure you created a public group called "Project Managers" prior to this step if you haven't already***
4. "Share with" should be "Public Groups" in the first drop-down, and "Project Managers" for the second drop down.
5. Opportunity access should be set to "read-only"
Rule 2.************
1. Label can be anything you like
2. Rule type = "Based on Record Owner"
3. Opportunity: owned by members of = Roles and Subordinates, and choose Sales Executives for the second drop-down menu
4. Share with: Roles, and choose Inside Sales Users for the second drop-down menu
5. Opportunity access should be set to "Read/Write"
Save both of these rules.
************************Apex Test Execution Step*****************
Type "Apex" into your quick search and choose Apex Test Execution
- Click Select Tests
- Choose "All namespaces" from the drop-down menu
- Choose "BeAwesome" and click run.
Your results should be 2/2.
Now navigate to the app launcher, and launch the "Sales" tab, and click on "Opportunities"
1. Click New
2. Name the opportunity anything you want
3. Choose Stage "Needs Analysis"
4. The close date should be picked as a value in the future.
5. click save
6. Create another "New" opportunity and name it anything you'd like again
7. For type, select "Existing Customer - Upgrade"
8. Set the date as whatever today's date is
9. Set the stage to "Closed Won"
10. Save
Now we need to make these opportunities owned by your user "Samantha Cordero"
1. Open the first opportunity you created, and click on the details tab
2. Under "Opportunity Owner" select "Change Owner" and change it to Samantha Cordero
3. Repeat steps 1-2 on the second opportunity.
***You might run into a bug where it doesn't allow you change the ownership to Samantha Cordero***
if this happens, you need to edit the "Field Users Profile" you created by going into it's "Object Settings" and setting the Read/Create/Edit configuration outlined in the Super badges Field Sales User Outline.
It's very important that you set up the previous opportunities, or the error will still throw.
Once the opportunities are created and you have configured everything else, the error will be gone.
Hi Raj, Nagendra and everybody.
Second day I am figting with this chellange and still receiving an errors:
Time Started3/5/2021, 7:48 AM
ClassBeAwesome
Method NamehelpAStranger
Pass/FailFail
Error MessageSystem.QueryException: List has no rows for assignment to SObject
Stack TraceClass.sb_security.BeAwesome.createUser: line 133, column 1
Class.sb_security.BeAwesome.setup: line 127, column 1
Help, please!!!!
Hi guys,
I removed ' s ' from everywhere, match names from requirements and passed Test :-)
Thx GOD you all!!!!!!!!!!!!
Any help is appreciated, have been stuck on this step for 3 days and it is driving me crazy.. I have searched and followed what others have done, after 3 days and 4 new playgrounds, I am about to give up. @Raj Goyal - I've followed your directons (1) added the role hierarchy (2) Project Managers public group (3) Sharing Rules (4) samantha is the owner of the opportunities, but still no avail.
Appreciate all your help! My screenshots below:
Sharing Rules
Public Groups
Heightening the difficulty was the fact that apparently salesforce was having major trouble yesterday according to isItDown.com - and my own extreme glitches loading pages and getting through password logins.
Big thanks to whomever advised us to just check back in the next day - I decided to do so and quite strangely the beAwesome test is sitting right there. Now I just have to harvest the wisdom of this thread to get past the 2 mini tests and leave this section behind soon :)
During doing a Super badge - Sales Cloud, I faced one small problem, tried every solution myself whatever possible for me but not passed but at last, I tried advised from someone and used that '' Only using @ in chatter message'', passed immediately.
Friends !! Please don’t waste many hrs or few days if you are facing any such glitch, go through the community or any other reliable platform you try to get the right solution?
Hi,
if you are unable to find 'awesome' package in apex test execution even after uninstall and install of the package, you can try below steps:
- go to setup and search for apex triggers
- click on developer console
- click on 'classes' entity type
- select 'be awesome'
- next you will find something like this - '(hidden)'
- navigate to 'test' and click on 'new run' and run
This worked for me and I was able to complete the challenge
Cheers!
https://youtu.be/QlhUstnNtwI