nowGurukul
Tera Guru
Tera Guru

 

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

 

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...

 

Week-3 Challenge:-

For this week, as part of the end to end project implementation, we will be working on some Basic Configurations, Related List and Agile Stories .

 

Related List:

 

  1. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised by the same Manager for all his/her Associates. Disable option to Create or Edit in this Related List.
  2. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised for the same ‘Requested For’ Employee. Disable option to Create or Edit in this Related List.
  3. On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List.
  4. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.
  5. On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.

 

Basic Configurations:

 

  1.  Make ‘Position Level’ and ‘Project/Account’ Mandatory in Employee form.
  2.  Make ‘Email ID’ and ‘Mobile Number’ mandatory in Employee Form.
  3.  Rename ‘Manager’ field name to ‘Project Manager’ field name in Employee Table.
  4.  Set Default value of E-Wallet Balance to 0 in Employee form.
  5.  Set ‘Position Level’ field default value as ‘Senior Associate’ in Employee Form.
  6.  ‘E-Wallet Budget’ field on Employee Table should only be hidden for Employees whose Position Level is Associate or Senior Associate.
  7.  HR agents should always open the Employee List on Corporate View.
  8.  Create Process Flow on ‘E-Wallet Request by Managers’ form to track the status of the Request.
  9.  On ‘Employee’ Form, under ‘Corporate Appreciations’ form section, add Label Text on top stating “This Section will talk about the Awards/Appreciations received by the Employee and their E-Wallet Details”.
  10.  On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance.
  11.  Create a new field ‘Rejection Reason’ field on E-Wallet Request by Managers’ table.
  12.  On the start of every Quarter (1st April, 1st July, 1st Oct, 1st Jan) , reset the E-Wallet Budget to Rs. 8000 for each Employee whose Position Level is Manager or above.

 

Agile Stories:

 

1. Activate Agile Development 2.0 Plugin. 

2. Create at least 5 stories from Week 1 Challenge with Description in the format : 

As a [persona], 

I [want to], 

[so that].

NOTE: Try to cover negative scenario also where applicable.

 

For Example: 

Example:

Description:

As a Fulfiller , I want to create a table with attributes 

Table Name =  Employee , extended from sys_user (User) table.

Acceptance Criteria:

Table - Employee (Extend from User Table)

Table fields:

Employee Number- Type - String, max length 10, Auto generated Number with Prefix EMP.

Name - Type - String , Max Length 20

and so on.

 

For further Challenges, be ready with ServiceNow Scripting Components and some of commonly used Scripting API like GlideForm, GlideUser, GlideSystem, GlideRecord, GlideAggregate, GlideAjax, etc.

 

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

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 🔖 for your future reference and do Mark it as Helpful 👍 if you really enjoy working on this challenge.

 

Regards,

nowGurukul Team

 

Comments
Sivasangeethp
Tera Contributor

Hi @nowGurukul ,

 

  1. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record. - in this current employee(refers to current employee record) & current user (refers to loged-in user). please confirm is this correct.

Thanks,

Siva

AnubhavRitolia
Mega Sage
Mega Sage

@Sivasangeethp 

 

Yes, your understanding is right. 😊

 

Logged in user can have access to create related using Related list only for his Employee Record and not others.

 

Abhilash
Tera Contributor

Unable to implement this :

  1. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.
  2. On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.
  3. On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List. - since e wallet balance is read only, unable to write any value to this, so unable to create this related list

 

i did create relationship for both, but doesn't fetch the required info

 for 1. - which need to display who manager is tagged for current employee record. so i am using below script

current.addQuery('name', parent.name);
 
name is the related list column and parent.name is current employee record(which contain employees name)
 
for 2. display requests that are logged by current employee.  below is the script used
 
    current.addQuery('name', parent.request.opened_by);
 

name is the related list column, parent.request.opened_by is from requested item table2.png1.png

 

Sivasangeethp
Tera Contributor

Hi @nowGurukul 

 

challenge 3 completed

Related List:

 

  1. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised by the same Manager for all his/her Associates. Disable option to Create or Edit in this Related List.Sivasangeethp_0-1705514025209.pngSivasangeethp_8-1705514465654.png

     

    Sivasangeethp_1-1705514161598.pngSivasangeethp_18-1705515109550.png

     

     

  2. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised for the same ‘Requested For’ Employee. Disable option to Create or Edit in this Related List.Sivasangeethp_2-1705514200141.pngSivasangeethp_17-1705515017627.png

     

     

    Sivasangeethp_10-1705514563966.png

     

    Sivasangeethp_3-1705514225833.png

     

  3. On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List.Sivasangeethp_4-1705514306981.pngSivasangeethp_6-1705514352858.pngSivasangeethp_15-1705514927353.pngSivasangeethp_16-1705514947326.png

     

     

     

  4. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.Sivasangeethp_11-1705514651571.pngSivasangeethp_12-1705514669419.pngSivasangeethp_13-1705514723379.pngSivasangeethp_14-1705514793547.png

     

  5. On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.Sivasangeethp_19-1705515305737.pngSivasangeethp_20-1705515366393.pngSivasangeethp_21-1705515414055.png

     

 

Basic Configurations:

 

  1.  Make ‘Position Level’ and ‘Project/Account’ Mandatory in Employee form.Sivasangeethp_22-1705515480574.png

     

  2.  Make ‘Email ID’ and ‘Mobile Number’ mandatory in Employee Form.Sivasangeethp_23-1705515491015.png

     

  3.  Rename ‘Manager’ field name to ‘Project Manager’ field name in Employee Table.Sivasangeethp_24-1705515500243.png

     

  4.  Set Default value of E-Wallet Balance to 0 in Employee form.Sivasangeethp_25-1705515537975.png

     

  5.  Set ‘Position Level’ field default value as ‘Senior Associate’ in Employee Form.Sivasangeethp_26-1705515554373.png

     

  6.  ‘E-Wallet Budget’ field on Employee Table should only be hidden for Employees whose Position Level is Associate or Senior Associate.Hided for Senior Associate or Associate:Sivasangeethp_27-1705515599334.png

    Visible for other choice like manager:

    Sivasangeethp_28-1705515643063.png

     

  7.  HR agents should always open the Employee List on Corporate View.User part of those 3 group which we created in challenge are HR agents and i have gave "Hr_agents" roles to user. u can use ismemberof() or hasrole(). i have used both here.
  8.   Sivasangeethp_0-1705515901185.png

    Here siva s is HR Agent after u set the view rule it wont allow user to chnage views:

    Sivasangeethp_1-1705516145485.png

     

  9.  Create Process Flow on ‘E-Wallet Request by Managers’ form to track the status of the Request.Sivasangeethp_2-1705516187141.png

     

  10.  On ‘Employee’ Form, under ‘Corporate Appreciations’ form section, add Label Text on top stating “This Section will talk about the Awards/Appreciations received by the Employee and their E-Wallet Details”.Sivasangeethp_4-1705516237799.png

     

  11.  On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance.balance.jpg
  12.  Create a new field ‘Rejection Reason’ field on E-Wallet Request by Managers’ table.Sivasangeethp_6-1705516337893.png

     

  13.  On the start of every Quarter (1st April, 1st July, 1st Oct, 1st Jan) , reset the E-Wallet Budget to Rs. 8000 for each Employee whose Position Level is Manager or aboveIt will run everymonth but the data update will happen on qauters 1st day month like 0-Jan,3- April,August,
  14. Sivasangeethp_7-1705518320060.pngSivasangeethp_8-1705518349151.png

     

 

Agile Stories:

 

1. Activate Agile Development 2.0 Plugin. 

plugin.jpg

 
 
 
 

2. Create at least 5 stories from Week 1 Challenge with Description in the format : 

stry.jpg

 

Thanks,

Siva

 
 
Sivasangeethp
Tera Contributor

Hi @nowGurukul 

 

In challenge 3

Related List

 1st, 2nd ,3rd point for them I have created a related list using relationship module . - For this related list edit option will not be available its OOB.

4.On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.

For this 4th point we can get a related list from m-2-m relationship. But before i have used the relationship module and created the list which is wrong.

related list which is created using relationship is called define related list . it will not have edit option. But this OOB related list created based on reference variable of form

Sivasangeethp_0-1705557944683.png

 

Here u can see Request-> Opened by its OOB related list u can use them

5.On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.

For this 5th point we can get a related list from m-2-m relationship. But before i have used the relationship module and created the list which is wrong.

related list which is created using relationship is called define related list . it will not have edit option. But this OOB related list created based on reference variable of form

 

Sivasangeethp_1-1705557944689.png

 

For this u can use Employee-> Project Manager or Employee-> Manager

 

Basic configuration

 

10.On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance.

Sivasangeethp_2-1705557944692.png

 

 

I think above ss itself showing total / sum of balance of particular employee.

 

 

@AnubhavRitolia , @Abhilash  - Please confirm for this 10th point is this correct or else please explain the scenario.

 

 

 

 

Thanks,

Siva

abhilash5
Tera Contributor

@Sivasangeethp 

for 10th point, you can use list calculation for e wallet balance column and select total value

Sivasangeethp
Tera Contributor

Thanks @abhilash5 .

Sivasangeethp_0-1705568764311.png

 

 

@abhilash5 - could u plz go through the above post for my challenge 3 completion which i attached. if something i missed or anything wrong . please let me know.

 

 

SarthakShri21
Tera Contributor

 

@Sivasangeethp  Thanks for sharing the work!!!!!!!

H562
Mega Guru

Hi @nowGurukul ,

 

Done with my week3 challenge.

 

Related List:

 

  1. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised by the same Manager for all his/her Associates. Disable option to Create or Edit in this Related List.

E_wallet_request_by_managers.png

    2. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised for the            same ‘Requested For’ Employee. Disable option to Create or Edit in this Related List.

 

E_wallet_request_by_employee.png

 

    3.  On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List.

 

E_wallet_balance_requests.png

 

      4. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.

Reportees.png

 

       5. On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.

 

E-voucher_request.png

 

Basic Configurations:

 

  1.  Make ‘Position Level’ and ‘Project/Account’ Mandatory in Employee form.

Mandatory.png

 

   2. Make ‘Email ID’ and ‘Mobile Number’ mandatory in Employee Form.

 

Mandatory.png

 

   3. Rename ‘Manager’ field name to ‘Project Manager’ field name in Employee Table.

Mandatory.png

 

  4. Set Default value of E-Wallet Balance to 0 in Employee form.

 

E-wallet_balance_default.png

 

  5. Set ‘Position Level’ field default value as ‘Senior Associate’ in Employee Form.

Position_level_default.png

 

  6. ‘E-Wallet Budget’ field on Employee Table should only be hidden for Employees whose Position Level is Associate or Senior Associate.

E-wallet_budget_hidden.pngE-wallet_budget_visible.png

 

  7. HR agents should always open the Employee List on Corporate View.

 

view_rule.png

 

  8. Create Process Flow on ‘E-Wallet Request by Managers’ form to track the status of the Request.

 

process_flow.png

 

 9. On ‘Employee’ Form, under ‘Corporate Appreciations’ form section, add Label Text on top stating “This Section will talk about the Awards/Appreciations received by the Employee and their E-Wallet Details”.

 

E-wallet_budget_hidden.png

 

 10. On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance.

 

Reportees.png

 

  11. Create a new field ‘Rejection Reason’ field on E-Wallet Request by Managers’ table.

 

process_flow.png

 

 12. On the start of every Quarter (1st April, 1st July, 1st Oct, 1st Jan) , reset the E-Wallet Budget to Rs. 8000 for each Employee whose Position Level is Manager or above.

 

Scheduled_Job_1.png

 

Scheduled_Job_2.png

 

Agile Stories:

 

1. Activate Agile Development 2.0 Plugin. 

 

Agile_Plugin.png

 

2. Create at least 5 stories from Week 1 Challenge

 

Agile_Stories.png

 

Regards,

Harish Akurati 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Sivasangeethp @H562 

You created the 5 stories , could you please paste screen shot of 1-2 stories , so that everyone can see how to write the story. 

Ehab Pilloor
Mega Sage

Hi everyone,

How to show label text in section of a form?

 

Sivasangeethp
Tera Contributor

Hi @Dr Atul G- LNG ,

 

I have attached the sample stories which i created.

 

 

Sivasangeethp_0-1705920799859.png

Sivasangeethp_2-1705921095426.png

 

 

Sivasangeethp_1-1705920983251.png

Sivasangeethp_3-1705921172915.pngSivasangeethp_4-1705921200754.png

 

Thanks,

Siva

 

bhanu1189
Tera Contributor

Hi @Sivasangeethp @H562 
Its working in background script but not in the scheduled jobs
can you find the error on this script?

bhanu1189_0-1705923825267.png

 

H562
Mega Guru

Hi @Dr Atul G- LNG,

 

Please find the below screenshots of my stories.

 

story_1.pngstory_2.pngstory_3.pngstory_4.pngstory_5.png

 

 

Regards,

Harish Akurati

H562
Mega Guru

Hi @Ehab Pilloor ,

 

Try to find *Annotation in available section of form layout. By placing it in selected section you will be getting additional pop-up as well like info box blue (or) error box and adding string value in it. Please find the below screenshot for your reference.

 

Annotation.png

 

Regards,

Harish Akurati

H562
Mega Guru

Hi @bhanu1189 ,

 

How are you storing position level backend values? Is it an integer?

 

Try to place some debug statement within while loop and check in log files whether it is entering into loop or not and please create sufficient data as well in employees table. Once you have added those debug statements try executing the scheduled job by clicking on "Execute Now" UI action button.

 

Regards,

Harish Akurati

 

 

sola2
Tera Contributor

Hello @Sivasangeethp 

Can you tell me how you did on the list control to be able to include the related list? It appears greyed out for me and I am not able to change it. Thank you in advance.

sola2_0-1705940906569.png

 

SunilKumar_P
Giga Sage

Hi @nowGurukul, I have completed the #Week_3 challenge.

 

1. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised by the same Manager for all his/her Associates. Disable option to Create or Edit in this Related List.

SunilKumar_P_0-1705939001908.png

2. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised for the same ‘Requested For’ Employee. Disable option to Create or Edit in this Related List.

SunilKumar_P_1-1705939043786.png

3. On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List.

SunilKumar_P_2-1705939120214.png

4. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.

SunilKumar_P_3-1705939252768.png

5. On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.

SunilKumar_P_5-1705939994721.png

 

 

Basic Configurations:

 

1. Make ‘Position Level’ and ‘Project/Account’ Mandatory in Employee form.

2. Make ‘Email ID’ and ‘Mobile Number’ mandatory in Employee Form.

3. Rename ‘Manager’ field name to ‘Project Manager’ field name in Employee Table.

4. Set Default value of E-Wallet Balance to 0 in Employee form.

5. Set ‘Position Level’ field default value as ‘Senior Associate’ in Employee Form.

 

SunilKumar_P_8-1705940214643.png

6. E-Wallet Budget’ field on Employee Table should only be hidden for Employees whose Position Level is Associate or Senior Associate.

SunilKumar_P_9-1705940381476.png

7. HR agents should always open the Employee List on Corporate View.

SunilKumar_P_10-1705940431837.png

 

8. Create Process Flow on ‘E-Wallet Request by Managers’ form to track the status of the Request

SunilKumar_P_11-1705940479001.png

 

9. On ‘Employee’ Form, under ‘Corporate Appreciations’ form section, add Label Text on top stating “This Section will talk about the Awards/Appreciations received by the Employee and their E-Wallet Details”.

SunilKumar_P_12-1705940510457.png

 

10. On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance.

SunilKumar_P_13-1705940750018.png

 

11. Create a new field ‘Rejection Reason’ field on E-Wallet Request by Managers’ table.

SunilKumar_P_14-1705940786977.png

 

12. On the start of every Quarter (1st April, 1st July, 1st Oct, 1st Jan) , reset the E-Wallet Budget to Rs. 8000 for each Employee whose Position Level is Manager or above.

SunilKumar_P_15-1705940827021.png

 

Agile Stories:

 

1. Activate Agile Development 2.0 Plugin. 

SunilKumar_P_16-1705940909917.png

 

SunilKumar_P_17-1705940938870.png

 

2. Create at least 5 stories from Week 1 Challenge with Description in the format :

SunilKumar_P_18-1705940991368.png

 

SunilKumar_P_19-1705941011926.png

 

SunilKumar_P_20-1705941032082.png

 

Thanks

Sunil

 

Rampriya-S
Tera Guru
Tera Guru

I am grateful for the fantastic team that collaborates on the weekly challenge.

 

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

 

YouTube - https://youtu.be/7h10A7Y9d7g?si=wsfeTVxuSZsjwsES

 

Rampriya S

dgarad
Giga Sage

Hi @nowGurukul 

 

challenge 3 completed

Related List:

 

  1. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised by the same Manager for all his/her Associates. Disable the option to Create or Edit in this Related List.

DharmarajGarad_0-1705929867395.png

 

DharmarajGarad_1-1705929916127.png

2. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised for the same ‘Requested For’ Employee. Disable option to Create or Edit in this Related List.

 

DharmarajGarad_2-1705930583606.png

 

3. On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List.

 

DharmarajGarad_4-1705930837331.png

4. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is a Current Employee. Only Current Users should have the option to Create a new Record.

DharmarajGarad_5-1705931048360.png

5. On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.

DharmarajGarad_6-1705932623219.png

 

Basic Configurations:

 

  1.  Make ‘Position Level’ and ‘Project/Account’ Mandatory in Employee form.

DharmarajGarad_7-1705932731139.png

 

 2. Make ‘Email ID’ and ‘Mobile Number’ mandatory in Employee Form.

DharmarajGarad_8-1705932767739.png

 

3. Rename ‘Manager’ field name to ‘Project Manager’ field name in Employee Table.

DharmarajGarad_9-1705932849869.png

 

 4. Set Default value of E-Wallet Balance to 0 in Employee form.

DharmarajGarad_10-1705933092022.png

 

 5. Set ‘Position Level’ field default value as ‘Senior Associate’ in Employee Form.

DharmarajGarad_11-1705933133897.png

 

 6.‘E-Wallet Budget’ field on Employee Table should only be hidden for Employees whose Position Level is Associate or Senior Associate.Hided for Senior Associate or Associate:

 

DharmarajGarad_12-1705933286411.png

 

DharmarajGarad_0-1705992830889.png

 

7.HR agents should always open the Employee List on Corporate View.

DharmarajGarad_0-1705995862234.png

8. Create Process Flow on ‘E-Wallet Request by Managers’ form to track the status of the Request

DharmarajGarad_1-1705995962598.png

9. On ‘Employee’ Form, under ‘Corporate Appreciations’ form section, add Label Text on top stating “This Section will talk about the Awards/Appreciations received by the Employee and their E-Wallet Details”.

DharmarajGarad_2-1705996016342.png

 

10. On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance.

DharmarajGarad_3-1705996099866.png

11. Create a new field ‘Rejection Reason’ field on E-Wallet Request by Managers’ table.

DharmarajGarad_4-1705996148373.png

 

 12. On the start of every Quarter (1st April, 1st July, 1st Oct, 1st Jan) , reset the E-Wallet Budget to Rs. 8000 for each Employee whose Position Level is Manager or above.

DharmarajGarad_5-1705996261560.png

DharmarajGarad_6-1705996280815.png

 

Agile Stories:

 

1. Activate Agile Development 2.0 Plugin. 

DharmarajGarad_0-1705999493264.png

 

2. Create at least 5 stories from Week 1 Challenge with Description in the format :

 

DharmarajGarad_1-1705999546986.png

 

DharmarajGarad_2-1705999580702.png

 

DharmarajGarad_3-1705999611496.png

Regards,

Dharmaraj

abhilash5
Tera Contributor

challenge 3 completed

Himani_14
Mega Sage
Mega Sage

Hi @nowGurukul Team,

Completed the Week 3 Challenge. Please find screenshots below :

 

Related List:

 

  • On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised by the same Manager for all his/her Associates. Disable option to Create or Edit in this Related List.

Himani5_0-1706001388528.png

 

  • On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised for the same ‘Requested For’ Employee. Disable option to Create or Edit in this Related List.

Himani5_1-1706001537255.png

Himani5_2-1706001580387.png

 

  • On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List.

Himani5_3-1706001759941.png

 

  • On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.

Himani5_4-1706001818300.png

 

  • On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.

Himani5_6-1706002052506.png

 

Basic Configurations:

 

  •  Make ‘Position Level’ and ‘Project/Account’ Mandatory in Employee form.
  •  Make ‘Email ID’ and ‘Mobile Number’ mandatory in Employee Form.
  •  Rename ‘Manager’ field name to ‘Project Manager’ field name in Employee Table.

Himani5_10-1706003971932.png

 

  •  Set Default value of E-Wallet Balance to 0 in Employee form.
  •  Set ‘Position Level’ field default value as ‘Senior Associate’ in Employee Form.

Himani5_11-1706004031862.png

Default values on new record

  •  ‘E-Wallet Budget’ field on Employee Table should only be hidden for Employees whose Position Level is Associate or Senior Associate.

Himani5_12-1706004090635.pngHimani5_13-1706004118604.png

 

  •  HR agents should always open the Employee List on Corporate View.

Himani5_14-1706004175986.png

 

  •  Create Process Flow on ‘E-Wallet Request by Managers’ form to track the status of the Request.

Himani5_15-1706004213835.png

 

  •  On ‘Employee’ Form, under ‘Corporate Appreciations’ form section, add Label Text on top stating “This Section will talk about the Awards/Appreciations received by the Employee and their E-Wallet Details”.

Himani5_16-1706004266863.png

 

  •  On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance.

Himani5_17-1706004341428.png

 

  •  Create a new field ‘Rejection Reason’ field on E-Wallet Request by Managers’ table.

Himani5_18-1706004519406.png

 

  •  On the start of every Quarter (1st April, 1st July, 1st Oct, 1st Jan) , reset the E-Wallet Budget to Rs. 8000 for each Employee whose Position Level is Manager or above.

Himani5_19-1706004568141.png

Agile Stories:

 

1. Activate Agile Development 2.0 Plugin. 

 

Himani5_20-1706004724171.png

 

2. Create at least 5 stories from Week 1 Challenge with Description in the format : 

 

Himani5_21-1706004774560.pngHimani5_22-1706004807348.pngHimani5_23-1706004837375.png

Thanks

Himani

Chetna_dev
Kilo Sage

Hii @nowGurukul I have completed my 3rd Challenge, below are the screenshots.

Week 3 Challenge: 

Related List:

1. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised by the same Manager for all his/her Associates. Disable option to Create or Edit in this Related List.

Screenshot (95).png

2. On the ‘E-Wallet Request by Managers’ table, add/create a related list to show all requests raised for the same ‘Requested For’ Employee. Disable option to Create or Edit in this Related List.

Screenshot (96).png

3. On ‘E-Wallet Request by Managers’ table, add/create a related list to show List of Employees whose E-Wallet Balance is below Rs.400. Disable option to Create or Edit in this Related List

Screenshot (97).png

4. On the ‘Employee’ table, add/create a related list to show all Employees whose manager is Current Employee. Only Current Users should have the option to Create a new Record.

Screenshot (103).png

5. On the ‘Employee’ table, add/create a related list to show a list of E-Voucher Requests raised by the current Employee. Only Current Users should have the option to Edit it.

Screenshot (112).png

Basic Configurations:

1.  Make ‘Position Level’ and ‘Project/Account’ Mandatory in Employee form.

2.  Make ‘Email ID’ and ‘Mobile Number’ mandatory in Employee Form.

3.  Rename ‘Manager’ field name to ‘Project Manager’ field name in Employee Table.

Screenshot (98).png

4. Set Default value of E-Wallet Balance to 0 in Employee form

Screenshot (99).png

5.  Set ‘Position Level’ field default value as ‘Senior Associate’ in Employee Form

6. E-Wallet Budget’ field on Employee Table should only be hidden for Employees whose Position Level is Associate or Senior Associate. Hided for Senior Associate or Associate

Screenshot (102).png

7.  HR agents should always open the Employee List on Corporate View

Screenshot (100).png

8.  Create Process Flow on ‘E-Wallet Request by Managers’ form to track the status of the Request

Screenshot (104).png

9. On ‘Employee’ Form, under ‘Corporate Appreciations’ form section, add Label Text on top stating “This Section will talk about the Awards/Appreciations received by the Employee and their E-Wallet Details”.

Screenshot (102).png

 

10. On the Related List of ‘Employee’ table where it shows a list of Employees whose manager is a current user, Show the Sum of Amount of each Employee’s E-Wallet Balance

 

Screenshot (102).png

 

11. Create a new field ‘Rejection Reason’ field on ‘E-Wallet Request by Managers’ table.

Screenshot (104).png

 

12. On the start of every Quarter (1st April, 1st July, 1st Oct, 1st Jan) , reset the E-Wallet Budget to Rs. 8000 for each Employee whose Position Level is Manager or above.

Screenshot (105).png

 

Agile Stories:

Activate Agile Development 2.0 Plugin. 

Screenshot (106).png

Create at least 5 stories from Week 1 Challenge with Description in the format :

Screenshot (107).png

Screenshot (109).png

 

My LinkedIn profile link: Chetna Sharma | LinkedIn

best

Chetna

 

Sivasangeethp
Tera Contributor

@bhanu1189 - i think issue it has an issue in 2nd line sometimes getlocal time() will cause issue in server script.

please use below script

// Scheduled Job Script to reset E-Wallet Budget for Managers and above

(function run() {
    try {
        // Set the position levels for which you want to reset the E-Wallet Budget
        var targetPositionLevels = ['Manager', 'Director', 'Technical Lead','Senior Manager','Senior Manager','HR'];

        // Get the current quarter
        var currentDate = new GlideDateTime();
        var currentQuarter = Math.floor((currentDate.getMonth() / 3));

        // Check if it's the start of a new quarter (0: Jan-Mar, 1: Apr-Jun, 2: Jul-Sep, 3: Oct-Dec)
        var Quarter=false;
        if([0, 3, 6, 9].indexOf(currentQuarter)=='0'|| [0, 3, 6, 9].indexOf(currentQuarter)=='3'||[0, 3, 6, 9].indexOf(currentQuarter)=='6'|| [0, 3, 6, 9].indexOf(currentQuarter)=='9'){
            Quarter=true;
        }
        if (currentDate.getDayOfMonth() === 1 && Quarter==true) {            
            // Query user records with specified position levels
            var userGr = new GlideRecord('x_906853_corpora_0_employee');
            userGr.addQuery('position_level', 'IN', targetPositionLevels);
            userGr.query();

            // Update E-Wallet Budget for each matching user
            while (userGr.next()) {
                // Assuming 'e_wallet_budget' is the custom field for E-Wallet Budget
                userGr.setValue('e_wallet_budget', 8000);
                userGr.update();
            }

            gs.info('E-Wallet Budget reset successfully for Managers and above.');
        } else {
            gs.info('E-Wallet Budget reset skipped. Not the start of a new quarter.');
        }
    } catch (ex) {
        gs.error('An error occurred: ' + ex);
    }
})();
Sivasangeethp
Tera Contributor

@sola2 - For your doubt.

 

system definition > relationship>create new

Sivasangeethp_0-1706453655880.png

create like this and add this in ur related list and u will get a REL field with value

 

And sorry for the delay in response. For any doubts. if there is any delay in response please ask in our whatsapp group

sola2
Tera Contributor

@SivasangeethpSivasangeethp thank you I was able to resolve it.

Community Alums
Not applicable

Anyone have a clue why the "Requested for" field is not populating the manager name? 

 

I've attached screenshots for reference

1. Requested for variable

gueldonh_4-1708879220453.png

 

2. Employee User Table

gueldonh_0-1708878779742.png

3.  Form in the Service Portal(Managers name is visible)

 

gueldonh_1-1708878807790.png

 

gueldonh_2-1708878839248.png

 

4. Request raised by employee related list

 

gueldonh_3-1708878902318.png

 

v1z-D
Tera Contributor

Hii @nowGurukul I have completed my 3rd Challenge, below are the screenshots.

Week 3 Challenge: 

Related List:

 

v1zD_0-1710113325629.png

 

 

v1zD_1-1710113365331.png

 

 

v1zD_2-1710113398903.png

 

 

v1zD_3-1710113422804.png

 

 

 

v1zD_4-1710113448087.png

 

 

 

Basic Config 

 

v1zD_5-1710113515962.png

 

v1zD_6-1710113543518.png

 

 

 

v1zD_7-1710113572321.png

 

 

 

v1zD_8-1710113599131.png

 

 

v1zD_9-1710113631189.png

 

 

v1zD_10-1710113653561.png

 

 

 

v1zD_11-1710113677580.png

 

 

v1zD_13-1710113748666.png

 

 

 

 

AgileBoard:

 

 

v1zD_12-1710113731602.png

 

 

 

Thank You

 

 

 

 

 

 

 

 

 

 

 

 

 

 

     

vidhya_mouli
Giga Sage

Just completed this week challenge. Everything else is almost same as what others did. However to reset the E-Wallet Balance I used flow designer to run the scheduled job.

 

Created 2 actions:

Get Current Month:

(function execute(inputs, outputs) {
    outputs.current_month = new GlideDateTime().getMonth();
})(inputs, outputs);

 

Reset E-Wallet Balance for Managers

(function execute(inputs, outputs) {
    
    var positions = gs.getProperty("employee.positions.to.reset.ewallet.balance");
    gs.log(positions);
    var grEmployee = new GlideRecord('u_employee');
    grEmployee.addQuery('u_position_level', 'IN', positions);
    grEmployee.query();

while (grEmployee.next()) {
    // Reset the u_e_wallet_balance to 8000
    grEmployee.setValue('u_e_wallet_balance', 8000);
    grEmployee.update();  // Save the changes
}

})(inputs, outputs);

 

Created Flow: Reset E-Wallet Balance

vidhya_mouli_0-1724326370759.png

 

 

Rampriya-S
Tera Guru
Tera Guru

Good job @vidhya_mouli 

Version history
Last update:
‎01-15-2024 10:53 PM
Updated by: