nowGurukul
Tera Guru
Tera Guru

ServiceNow Community - “Discipline is choosing between what you want now, and what you want most.” 

nowGurukul_1-1710661292310.png

 

Challenge Introduction:- In order to strengthen the ServiceNow hands-on skills , each week a challenge will be posted and you need to implement the solution in your Personal Development Instance and share the screenshots of the completion in the post comments and your take home learning for this week Challenge.

 

Benefits:-

  1. A weekly implementation challenge in order to do goal based learning.
  2. An opportunity to connect and learn from thousand of others ServiceNow Enthusiasts who are part of nowGurukul community.
  3. An opportunity to learn and implement exciting features & functionalities of ServiceNow platform every week.
  4. Real time project based learning opportunity which can be used in your resumes in order to showcase how competent you are in implementing ServiceNow hands-on solutions.
  5. Opportunity to innovate and come up with your creative solutions for the challenges in order to grow your ServiceNow competency.

and much more....

 

Challenge Guidelines:- 

  1. Kindly use your personal development instance for the challenge implementation.
  2. In case of any assistance/discussion required , please use nowGurukul Official What's App Channel for the quick resolution.
  3. Wherever needed assume the values in order to complete the challenge as you are independent enough to bring in your creativity in your hands on implementations.
  4. Make sure you follow Best Practice wherever applicable.

*****************************************************************************************************************

 

Prerequisite:

 nowGurukul ServiceNow Hands-On Challenge 2024 #Week_1

https://www.servicenow.com/community/developer-articles/nowgurukul-servicenow-hands-on-challenge-202...

 

nowGurukul ServiceNow Hands-On Challenge 2024 #Week_2

https://www.servicenow.com/community/developer-articles/nowgurukul-servicenow-hands-on-challenge-202...

 

nowGurukul ServiceNow Hands-On Challenge 2024 #Week_3

https://www.servicenow.com/community/developer-articles/nowgurukul-servicenow-hands-on-challenge-202...

 

nowGurukul ServiceNow Hands-On Challenge 2024 #Week_4

https://www.servicenow.com/community/developer-articles/nowgurukul-servicenow-hands-on-challenge-202...

 

nowGurukul ServiceNow Hands-On Challenge 2024 #Week_5

https://www.servicenow.com/community/developer-articles/nowgurukul-servicenow-hands-on-challenge-202...

 

nowGurukul ServiceNow Hands-On Challenge 2024 #Week_6

https://www.servicenow.com/community/developer-articles/nowgurukul-servicenow-hands-on-challenge-202...

 

Week-7 Challenge:-

Service Level Agreement

Establish Service Level Agreements (SLAs) for the fulfillment of E-Wallet Requests based on the specific Type of Award.

The provided table outlines the Service Level Agreements (SLAs) for response and resolution times applicable to assignment groups responsible for fulfilling E-wallet requests initiated by Managers.

Sl.No

Target

Type of Award

Duration

1

Response

On spot award

5 hours

2

Resolution

On spot award

2  business days

3

Response

Best Employee of the month

3 hours

4

Resolution

Best Employee of the month

2 business days

5

Response

Best New comer Award

5 hours

6

Resolution

Best New comer Award

3 business days

7

Response

Extraordinary Employee Award

6 hours

8

Resolution

Extraordinary Employee Award

2 business days

9

Response

Successful Go-Live Appreciation

4 hours

10

Resolution

Successful Go-Live Appreciation

6 business days

 

Please feel free to define start and stop conditions as per your logic and also you have the freedom to select the schedule as well.

 

Access Control Lists

Set up Access Control Lists (ACLs) for E-Wallet requests initiated by Managers

      1. Managers can Submit the request and monitor the raised requests.

  1. Fulfillers (Assignment Group members) have visibility of the raised requests and can modify the Request Status and Assignment Group if incorrectly assigned.
  2. The Delivery Head has the authority to view the submitted requests, adjust the requested amount, and modify the Assignment Group.
  3. If any requests require deletion, the Director or Administrator should handle the process.

 

Database Views

 

Managers and higher-level personnel wish to access the 'E-Wallet Requests by Position' report during budget meetings, which includes the following fields.

  1. User ID
  2. Manager
  3. Position
  4. Project
  5. Type of Award
  6. Requested Amount
  7. E-wallet Budget
  8. E-wallet Balance
  9. Type Award
  10. Assignment Group

Generate a Database View named 'E-Wallet Request Details' for the Employee and E-Wallet Request by Manager tables. Utilize this view to create the respective report.

 

 

*****************************************************************************************************************

Join nowGurukul Communication Channels to get latest updates:-

LinkedIn:- https://www.linkedin.com/company/nowgurukul

What's App:- https://chat.whatsapp.com/DlXPEZCFFTn0ImvGA5UErP

YouTube:- https://www.youtube.com/channel/UClnJHTVq8kNkS1KCzMptYGg

 

Please Bookmark this Article 

nowGurukul_2-1710661335767.png

 for your future reference and do Mark it as Helpful 

nowGurukul_3-1710661335779.png

 

 if you really enjoy working on this challenge.

 

Regards,

nowGurukul Team

Comments
Sivasangeethp
Tera Contributor

Hi @nowGurukul , @AG - LearnNGrow, @Everyone,

 

I'm trying gs.getUser().isMemberOf(current.assignment_group) to check current user is part of the group. currently the table (x_906853_corpora_0_e_wallet_request_by_managers)in custom scope so above script is not working.

I saw few community post say in custom scope above script is not working. i have tried from Script include to acl and glide query (sys_user_grmember) none of the logic is working for me. please share your thoughts in this 

 

 script from acl:

 

answer = false;

var result=gs.getUser().isMemberOf(current.assignment_group);

if(result==true){

answer= true;

}

 

Another logic :

 

var SI=new x_906853_corpora_0.IsMemberOfGroup();
var result=SI.GroupDetails(group,user);
gs.info('result==11'+result);
if (result==true) {
answer = true;
}

SI:

var IsMemberOfGroup = Class.create();
IsMemberOfGroup.prototype = {
initialize: function() {
},
GroupDetails:function(grp,usr){
var group=grp;
var user=usr;
var gr=new GlideRecord('sys_user_grmember');
gr.addEncodedQuery('user='+user+'^group='+group);
gr.query();
if(gr.next() || gr.hasNext()){
return true;
}
return false;
},
type: 'IsMemberOfGroup'
};

 

Thanks,

Siva

Rampriya-S
Tera Guru
Tera Guru

Hi @Sivasangeethp 

I appreciate your findings! We can simplify with OOB ServiceNow solutions !

I see you are solving the 'Managers can Submit the request and monitor the raised requests.'

I propose creating a group called 'Corporate Gifting Managers' and including them in the user criteria of the 'Raise E-Wallet Request for your Mentee' Record producer. This ensures only managers can initiate such requests.

Additionally, we can utilize default ACLs to enhance security. This involves creating roles, binding them to ACLs, and aligning them with specific groups.

rampriya_S_0-1711325584599.png

 

 

 

 

Rampriya-S
Tera Guru
Tera Guru

rampriya_S_0-1711326769809.png

rampriya_S_1-1711326876305.png

 

Sivasangeethp
Tera Contributor

hi @Rampriya-S ,

I'm trying for 2nd point in the acl.

Fulfillers (Assignment Group members) have visibility of the raised requests and can modify the Request Status and Assignment Group if incorrectly assigned.

kindly add your thoughts in it.

thanks 

siva

 

 

Rampriya-S
Tera Guru
Tera Guru

Got it! The second point means that Assignment group members can change both the Request status and Assignment group. This includes scenarios where tickets are misassigned and come into their queue, enabling them to adjust the assignment group field accordingly.

 

Means field level ACL.

Sivasangeethp
Tera Contributor

Hi @Rampriya-S ,

 

Yep correct . but for some reason for request status not editable and the write acl is return as false.

Sivasangeethp_0-1711391758627.png

 

Thanks,

Siva

Rampriya-S
Tera Guru
Tera Guru

Create field level write ACL for 'Assignment group field'.

Assign the required role and configure the same role to the Assignment groups.

rampriya_S_0-1711415267233.png

 

Sivasangeethp
Tera Contributor

Hi @RampriyaS ,

 

I have created the above acl still I'm facing the same issue.  when im impersonate as the user with the below role for them assignment group as well coming as readonly.

Sivasangeethp_0-1711450346711.png

 

 

Thanks,

Siva

Sivasangeethp
Tera Contributor

Hi @nowGurukul ,

 

I have completed the week 7 challenge. And added my screenshots in below link.

NowGurukulUpdates · GitFront

 

Thanks,

Siva

Rampriya-S
Tera Guru
Tera Guru


Taking nowGurukul weekly challenge is a great experience. I suggest everyone at the beginner and intermediate level in ServiceNow to give it a try.

Linked in: https://www.linkedin.com/posts/rampriya-s_corporate-gifting-week6-servicenow-challenge-activity-7180...

YouTube: https://youtu.be/fvLoL-RuQsU

Version history
Last update:
‎03-19-2024 05:15 AM
Updated by: