- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
01-07-2024 07:30 PM - edited 01-08-2024 02:10 AM
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:-
- A weekly implementation challenge in order to do goal based learning.
- An opportunity to connect and learn from thousand of others ServiceNow Enthusiasts who are part of nowGurukul community.
- An opportunity to learn and implement exciting features & functionalities of ServiceNow platform every week.
- 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.
- 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:-
- Kindly use your personal development instance for the challenge implementation.
- In case of any assistance/discussion required , please use nowGurukul Official What's App Channel for the quick resolution.
- 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.
- Make sure you follow Best Practice wherever applicable.
*****************************************************************************************************************
Prerequisite:
nowGurukul ServiceNow Hands-On Challenge 2024 #Week_1
Week-2 Challenge:-
For this week, as part of the end to end project implementation, we will be configuring few Application Menus/Modules. Then we would be create new Catalog Item and Record Producer with variables and variable set.
Application Menu/Modules:
Application Name: Corporate Gifting
Modules:
- All Employees – List of Employee Table all records.
- My Employees – List of employees whose manager is Me (logged in user).
- Create New Employee – New form to create Employee record.
- My Requests – List of E-Wallet Request requested by Me (logged in user).
- Requests assigned to Me - List of E-Wallet Request assigned to me (logged in user). This module should be visible only to HR Agents.
- Requests assigned to My Group - List of E-Wallet Request assigned to my Groups. This module should be visible only to HR Agents.
- Closed E-Wallet Requests – Available to only HR Agents. List of E-Wallet Requests which are closed.
Catalog Items:
Name: E-Voucher Request
Catalog: Service Catalog
Category: Corporate Policies/Benefits (New Category)
Short Description: To raise request to avail E-Voucher based on E-Wallet balance.
Variable Set:
Requested By – Read-only, Auto populated by logged in user.
Variables:
1. Project/Account – Read-Only. Auto-populate based on Requested By from Employee record.
2. E-Voucher Type - Choice Values-
- E-Commerce (Default)
- Shopping
- Sports Wear
- Food Delivery
3. E-Voucher Brand: Choice Values with None option:
- Flipkart (Visible only when E-Voucher Type is E-Commerce)
- Amazon (Visible only when E-Voucher Type is E-Commerce)
- Myntra (Visible only when E-Voucher Type is E-Commerce)
- Lifestyle (Visible only when E-Voucher Type is Shopping)
- Allen Solly (Visible only when E-Voucher Type is Shopping)
- Zomato (Visible only when E-Voucher Type is Food Delivery)
- Swiggy (Visible only when E-Voucher Type is Food Delivery)
- Puma (Visible only when E-Voucher Type is Sports Wear)
- Adidas (Visible only when E-Voucher Type is Sports Wear)
- Nike (Visible only when E-Voucher Type is Sports Wear)
4. E-Voucher Amount:
- Rs.100 (Visible only when E-Voucher Type is Food Delivery)
- Rs.200 (Visible only when E-Voucher Type is E-Commerce, Food Delivery)
- Rs.250 (Visible only when E-Voucher Type is E-Commerce, Sports Wear)
- Rs.400 (Visible only when E-Voucher Type is Shopping, Food Delivery)
- Rs.500 (Visible only when E-Voucher Type is E-Commerce, Shorts Wear, Shopping)
- Rs.750 (Visible only when E-Voucher Type is Shopping, Sports Wear)
- Rs.1000 (Visible for all E-Voucher Type)
5. Quantity: Choice Values:
- 1 (Default)
- 2
- 3
- 4
- 5
6. E-Voucher Price: Read-Only and Auto-populate based on E-Voucher Amount and Quantity. (E-Voucher Amount*Price).
7. Comments: Multi Line String Text.
Record Producer:
Name: Raise E-Wallet Request for your Mentee
Catalog: Service Catalog
Category: Corporate Policies/Benefits
Short Description: To raise submit request for mentees to allocate E-Wallet Amount to their wallet based on the Award/Appreciation they receive.
Variables:
1. Requested By – Read-only, Auto populated by logged in user.
2. Requested For – Show only the users whose manager is logged in user.
3. Type of Award/Appreciation – Choice Values:
- Pat on the Back Award (Rs. 300)
- On-Spot Award (Rs.400)
- Best Employee of the month (Rs. 500)
- Successful Go-Live Appreciation (Rs. 250)
- Escalation Handling Appreciation (Rs.200)
- Best Newcomer Award (Rs. 600)
- Rising Star Award (Rs. 800)
- Extraordinary Employee Award (Rs. 1000)
4. E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
5. Watchlist – List of users who can be added like Senior Manager, Delivery Head, Account Manager, etc.
6. Additional Comment – Multi line string text field.
7. Attachment – Attachment to show any proof. [Optional].
*****************************************************************************************************************
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
- 10,282 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul, Can you help me explain this better "1. Project/Account – Read-Only. Auto-populate based on Requested By from Employee record."
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@nowGurukul - In Application & Module I could see for some module visibility is only for "HR Agents" what it is? role or something.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I am assuming you have completed Week 1 challenge.
Here you have to create a variable 'Project/Account' which should be read-only and it should auto populated based on the user you select in Requested By variable from the 'Employee' Table record where each employee is linked to Project/Account field.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I am assuming you have completed Week 1 challenge.
Here 'HR Agents' means HR agents who would be assigned to respective Requests. Who are part of HR Groups.
You have to figure out how you want to achieve it.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@AnubhavRitolia - Yep i think i have got. please guide is this right or wrong
Users who are part of above groups are HR Agents . So in module we can give visibility based on the roles only as per i know.
So, i have planned to create one role called "HR_Agents" and will be assigning to above groups and afterwards i will assign the same role to module's visibility. so that it will only be visible to hr agents.
Kindly correct me if the idea is not correct.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi All,
This is for people who got stuck at auto populate of "Project/Account" field. And for few of us value is not getting auto populate.
At first i have tried with onload client script with glide record were i will get the "requested by" and will search for the user in employee table and from their i tried to get "Project/Account". But the value is not populating. As far i know the issue is coming because of the scope.
So i have created a glide Ajax and script include. And finally got the value.
Sample script:
client script:
Script include:
output:
Source Script
Client script :
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
If we are doing glide Ajax in week 2, imagine what we'll be doing in week 52.😂🤣
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
For Catalog item I see there is a variable set needs to be create. But it has only one variable mentioned. (Requested By).
Also, Variable set name is not defined in the problem statement.
Any suggestions please!
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Yes you are free to use any variable set name as it is backend part and not required to be displayed on catalog item Form level.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I have Completed Hands-On Challenge W2
- Application Menu/Modules:
- All Employees – List of Employee Table all records.
- My Employees – List of employees whose manager is Me (logged in user).
- Create New Employee – New form to create Employee record
- My Requests – List of E-Wallet Request requested by Me (logged in user).
- Requests assigned to Me - List of E-Wallet Request assigned to me (logged in user). This module should be visible only to HR Agents
- Requests assigned to My Group - List of E-Wallet Request assigned to my Groups. This module should be visible only to HR Agents.
- Closed E-Wallet Requests – Available to only HR Agents. List of E-Wallet Requests which are closed.
2. Catalog Items:
E-Voucher Brand Visible follow E-Voucher Type:
E-Voucher Amount Visible follow E-Voucher Type and E-voucher Price Auto-populate:
Quantity Choice:
3. Record Producer:
Requested For – Show only the users whose manager is logged in user:
Type of Award/Appreciation – Choice Values:
E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
Thanks, and best regards,
Bach Phan
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul
Challenge 2 is completed
Application Menu/Modules:
- All Employees – List of Employee Table all records.
2. My Employees – List of employees whose manager is Me (logged in user).
3. Create New Employee – New form to create Employee record.
4. My Requests – List of E-Wallet Request requested by Me (logged in user).
For HR Agents visibility I have created role and tag the bellow the group and those group members are hr agents.
5. Requests assigned to Me - List of E-Wallet Request assigned to me (logged in user). This module should be visible only to HR Agents
6. Requests assigned to My Group - List of E-Wallet Request assigned to my Groups. This module should be visible only to HR Agents.
7. Closed E-Wallet Requests – Available to only HR Agents. List of E-Wallet Requests which are closed.
Catalog Items:
Name: E-Voucher Request
E-Voucher Brand visibility based on E-Voucher Type
1. E-Commerce
2.Shopping
3.Sports Wear
4. Food Delivery
E-Voucher Amount visibility based on E-Voucher Type
- E-Commerce
2. Shopping
3. Sports Wear
4. Food Delivery
E-Voucher Price: Read-Only and Auto-populate based on E-Voucher Amount and Quantity. (E-Voucher Amount*Price).
Record Producer:
Name: Raise E-Wallet Request for your Mentee
- Requested For – Show only the users whose manager is logged in user.
Logged in User : Siva S
E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
Pat on the Back Award (Rs. 300)
On-Spot Award (Rs.400)
Best Employee of the month (Rs. 500)
Successful Go-Live Appreciation (Rs. 250)
Escalation Handling Appreciation (Rs.200)
Best Newcomer Award (Rs. 600)
Rising Star Award (Rs. 800)
Extraordinary Employee Award (Rs. 1000)
Watchlist – List of users who can be added like Senior Manager, Delivery Head, Account Manager, etc.
Thanks,
Siva
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @AnubhavRitolia ,
Could you please help here to configure this.
3. E-Voucher Brand: Choice Values with None option:
- Flipkart (Visible only when E-Voucher Type is E-Commerce)
- Amazon (Visible only when E-Voucher Type is E-Commerce)
- Myntra (Visible only when E-Voucher Type is E-Commerce)
- Lifestyle (Visible only when E-Voucher Type is Shopping)
- Allen Solly (Visible only when E-Voucher Type is Shopping)
- Zomato (Visible only when E-Voucher Type is Food Delivery)
- Swiggy (Visible only when E-Voucher Type is Food Delivery)
- Puma (Visible only when E-Voucher Type is Sports Wear)
- Adidas (Visible only when E-Voucher Type is Sports Wear)
- Nike (Visible only when E-Voucher Type is Sports Wear)
I have tried to do it with client script, but I am not able to configure the visibility base on E-vouvher type. Could you please guide what I can use here to configure this requirement?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi, @Sivasangeethp
could you please upload your solution of week1 and week2 on youtube?
it would be great help
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Team,
Can anyone help here to configure the requested by field with auto populated value. My scripts is not working here.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
It was fun working on this week's challange. Thanks 🙏🤩
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Plz refer below script
And script:
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul Team,
Please find screenshots below for week 2 challenge.
Application Menu/Modules:
Employee View
HR View
Catalog Items:
Name: E-Voucher Request
Record Producer:
Name: Raise E-Wallet Request for your Mentee
Thanks
Himani
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hii @nowGurukul I have completed my 2nd Challenge, below are the screenshots.
Week 2 Challenge:
Application Menu/Modules:
All Employees – List of Employee Table all records.
My Employees – List of employees whose manager is Me (logged in user).
Create New Employee – New form to create Employee record.
My Requests – List of E-Wallet Request requested by Me (logged in user).
HR Agent Role with group and modules
Requests assigned to Me - List of E-Wallet Request assigned to me (logged in user). This module should be visible only to HR Agents
Requests assigned to My Group - List of E-Wallet Request assigned to my Groups. This module should be visible only to HR Agents.
Closed E-Wallet Requests – Available to only HR Agents. List of E-Wallet Requests which are closed
Catalog Items:
Name: E-Voucher Request
E-Voucher brand visibility based on E-Voucher Type
-Sports wear
-Food Delivery
E-Voucher Amount visibility based on E-Voucher Type
E-Voucher Price: Read-Only and Auto-populate based on E-Voucher Amount and Quantity.
Record Producer:
Name: Raise E-Wallet Request for your Mentee
Requested For – Show only the users whose manager is logged in user.
Logged in User: Chetna Sharma
E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
Watchlist
My LinkedIn profile link: Chetna Sharma | LinkedIn
best
Chetna
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul Team,
Please find Week 2 challenge completion screenshots below.
Application Menu/Modules:
1. Employee View
2. HR View
Catalog Items:
Name: E-Voucher Request
Record Producer:
Name: Raise E-Wallet Request for your Mentee
Thanks
Himani
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Can anyone please help me in this field E-Voucher Price: Read-Only and Auto-populate based on E-Voucher Amount and Quantity? (E-Voucher Amount*Price)
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul
I have done with the week 2 challenge.
Application Menu/Modules:
All Employees – List of Employee Table all records.
My Employees – List of employees whose manager is Me (logged in user).
Create New Employee – New form to create Employee record.
My Requests – List of E-Wallet Request requested by Me (logged in user).
Requests assigned to Me - List of E-Wallet Request assigned to me (logged in user). This module should be visible only to HR Agents
Requests assigned to My Group - List of E-Wallet Request assigned to my Groups. This module should be visible only to HR Agents.
Closed E-Wallet Requests – Available to only HR Agents. List of E-Wallet Requests which are closed
Catalog Items:
Name: E-Voucher Request
E-Voucher Type - Choice Values-
- E-Commerce (Default)
2. Shopping
3. Sports Wear
4. Food Delivery
E-Voucher Amount:
Record Producer:
Name: Raise E-Wallet Request for your Mentee
Requested For – Show only the users whose manager is logged in user.
E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
Watchlist
Regards,
Dharmaraj
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thanks for this opportunity. I am learning a lot. I really appreciate the support being rendered by everyone.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Grateful appreciation to the @nowGurukul team for organizing the Week 2 challenge.
YouTube - https://youtu.be/D-cDF7MtoNk
Linked In -https://www.linkedin.com/posts/rampriya-s_corporate-gifting-week2-servicenow-challenge-activity-715284484691...
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Can some one help on how to achieve this -
4. E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Can someone pls help on this
E-Voucher Price: Read-Only and Auto-populate based on E-Voucher Amount and Quantity. (E-Voucher Amount*Price).
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
You will have to write two onchange client script, one for 'E-Voucher Amount' variable and one for 'Quantity' variable, calculate the amount (Product of E-Voucher Amount and Quantity and set it in the 'E-Voucher Amount Price' variable.
Please refer below script. You will have to write similar one.
Client Script:
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi All ,
Can anyone help , how we can populate "requested For" variable when Manager logged in and push the Group members to the choice ???
Thanks in advance.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@vicky27, you can add a simple reference qualifier to you requested for variable(which i believe is reference from user table).
manager.name is javascript:gs.getUserDisplayName()
Which would help you to display user's who manager is logged in user
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul,
I have successfully completed week 2 challenge and screenshot are attached below.
Modules:
Catalog item
Record Producer
Regards,
T Mohan.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Please check
Raise E-Wallet Request for your Mentee
Client script :
- Appreciation amount setting
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
amountSetting(newValue);
}
amountSetting(newValue);
}
function amountSetting(newValue){
if (newValue == 'Pat on the Back Award') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 300');
}
if (newValue == 'On-Spot Award') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 400');
}
if (newValue == 'Best Employee of the month') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 500');
}
if (newValue == 'Successful Go-Live Appreciation') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 250');
}
if (newValue == 'Escalation Handling Appreciation') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 200');
}
if (newValue == 'Best Newcomer Award') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 600');
}
if (newValue == 'Rising Star Award') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 800');
}
if (newValue == 'Extraordinary Employee Award') {
g_form.setValue('u_e_wallet_amount_to_be_added', 'Rs. 1000');
}
//Type appropriate comment here, and begin script below
}
E-Voucher Request
Client script:
- E-Voucher Amount options visibility
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
getVouchertype();
}
g_form.clearValue('u_e_voucher_amount');
getVouchertype();
}
function getVouchertype() {
g_form.clearOptions('u_e_voucher_amount');
// 100
if (newValue == 'Food Delivery') {
g_form.addOption('u_e_voucher_amount', '100', '100', 1);
} else {
g_form.removeOption('u_e_voucher_amount', '100');
}
//200
if (newValue == 'Food Delivery' || newValue == 'E-Commerce') {
g_form.addOption('u_e_voucher_amount', '200', '200', 2);
} else {
g_form.removeOption('u_e_voucher_amount', '200');
}
// 250
if (newValue == 'Sports Wear' || newValue == 'E-Commerce') {
g_form.addOption('u_e_voucher_amount', '250', '250', 3);
} else {
g_form.removeOption('u_e_voucher_amount', '250');
}
//400
if (newValue == 'Shopping' || newValue == 'Food Delivery') {
g_form.addOption('u_e_voucher_amount', '400', '400', 4);
} else {
g_form.removeOption('u_e_voucher_amount', '400');
}
//500
if (newValue == 'Sports Wear' || newValue == 'E-Commerce' || newValue == 'Shopping') {
g_form.addOption('u_e_voucher_amount', '500', '500', 5);
} else {
g_form.removeOption('u_e_voucher_amount', '500');
}
// 750
if (newValue == 'Sports Wear' || newValue == 'Shopping') {
g_form.addOption('u_e_voucher_amount', '750', '750', 6);
} else {
g_form.removeOption('u_e_voucher_amount', '750');
}
//1000
if (newValue == 'Sports Wear' || newValue == 'Shopping' || newValue == 'E-Commerce' || newValue == 'Food Delivery') {
g_form.addOption('u_e_voucher_amount', '1000', '1000', 7);
} else {
g_form.removeOption('u_e_voucher_amount', '1000');
}
//Type appropriate comment here, and begin script below
}
- E-Voucher Price calc:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var Quantity=newValue;
var amount=g_form.getValue('u_e_voucher_amount');
var price=amount*Quantity;
g_form.setValue('u_e_voucher_price',price);
//Type appropriate comment here, and begin script below
}
- E-Voucher Brand options visibility:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
getVouchertype();
}
g_form.clearValue('u_e_voucher_brand');
getVouchertype();
}
//E-Commerce
function getVouchertype() {
// g_form.clearOptions('u_e_voucher_brand');
if (newValue == 'E-Commerce') {
g_form.addOption('u_e_voucher_brand', 'Flipkart', 'Flipkart', 1);
g_form.addOption('u_e_voucher_brand', 'Amazon', 'Amazon', 2);
g_form.addOption('u_e_voucher_brand', 'Myntra', 'Myntra', 3);
} else {
g_form.removeOption('u_e_voucher_brand', 'Flipkart');
g_form.removeOption('u_e_voucher_brand', 'Amazon');
g_form.removeOption('u_e_voucher_brand', 'Myntra');
}
//Shopping
if (newValue == 'Shopping') {
g_form.addOption('u_e_voucher_brand', 'Lifestyle', 'Lifestyle', 1);
g_form.addOption('u_e_voucher_brand', 'Allen Solly', 'Allen Solly', 2);
} else {
g_form.removeOption('u_e_voucher_brand', 'Lifestyle');
g_form.removeOption('u_e_voucher_brand', 'Allen Solly');
}
// Food Delivery
if (newValue == 'Food Delivery') {
g_form.addOption('u_e_voucher_brand', 'Zomato', 'Zomato', 1);
g_form.addOption('u_e_voucher_brand', 'Swiggy', 'Swiggy', 2);
} else {
g_form.removeOption('u_e_voucher_brand', 'Zomato');
g_form.removeOption('u_e_voucher_brand', 'Swiggy');
}
// Sports Wear
if (newValue == 'Sports Wear') {
g_form.addOption('u_e_voucher_brand', 'Puma', 'Puma', 1);
g_form.addOption('u_e_voucher_brand', 'Adidas', 'Adidas', 2);
g_form.addOption('u_e_voucher_brand', 'Nike', 'Nike', 3);
} else {
g_form.removeOption('u_e_voucher_brand', 'Puma');
g_form.removeOption('u_e_voucher_brand', 'Adidas');
g_form.removeOption('u_e_voucher_brand', 'Nike');
}
//Type appropriate comment here, and begin script below
}
- E-Voucher Price calc:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var Quantity=g_form.getValue('u_quantity');
var amount=newValue;
var price=amount*Quantity;
g_form.setValue('u_e_voucher_price',price);
//Type appropriate comment here, and begin script below
}
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello @nowGurukul,
I have completed #Week_2 challenege:
Application Menu/Modules:
All Employees - List of Employee Table all records.
My Employees – List of employees whose manager is Me (logged in user).
Create New Employee - New form to create Employee record.
My Requests - List of E-Wallet Request requested by Me (logged in user).
Requests Assigned to Me: List of E-Wallet Request assigned to me (logged in user). This module should be visible only to HR Agents.
Requests Assigned to My Group: List of E-Wallet Request assigned to my Groups. This module should be visible only to HR Agents.
Closed E-Wallet Request: Available to only HR Agents. List of E-Wallet Requests which are closed.
Catalog Item: E-Voucher Request:
E-Voucher Type: E-Commerce:
E-Voucher Type: Shopping:
E-Voucher Type: Food Delivery
E-Voucher Amount:
Quantity:
Record Producer: Raise E-Wallet Request for your Mentee
Type of Award:
E-Wallet Amount:
Watch List:
Regards,
Sunil
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Any suggestions on how to auto-populate these fields?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul, Can you help me explain this better "1. Project/Account – Read-Only. Auto-populate based on Requested By from Employee record."
How to achieve this without having 'Requested By' field in the employee table?
I tried making required by field in the catalog as reference to employee table but not able to get project/account field values auto populate.
Appreciate if anyone can let me know how did you all achieve this from variable configuration.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@Community Alums
This is for auto populate project/account based on requested by ?
you got this just by doing dot walk to project/account?
More details..
I got this by client script and script include. I tried to without script but couldn’t get it.
if you got this without these scripts let me know how . I’m interested to know more
Thank you for updating
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
nowGurukul ServiceNow Hands-On Challenge 2024 #Week_2
Application Menu/Modules:
Modules:
1.All Employees: List of Employee Table all records.
- My Employees – List of employees whose manager is Me (logged in user).
3.Create New Employee – New form to create Employee record.
- My Requests – List of E-Wallet Request requested by Me (logged in user).
- Requests assigned to Me - List of E-Wallet Request assigned to me (logged in user). This module should be visible only to HR Agents.
- Requests assigned to My Group - List of E-Wallet Request assigned to my Groups. This module should be visible only to HR Agents.
- Closed E-Wallet Requests – Available to only HR Agents. List of E-Wallet Requests which are closed.
Catalog Items:
Requested By – Read-only, Auto populated by logged in user.
- Project/Account – Read-Only. Auto-populate based on Requested By from Employee record.
- E-Voucher Type - Choice Values-
- E-Voucher Brand: Choice Values with None option:
- E-Voucher Amount:
- Quantity: Choice Values:
- E-Voucher Price: Read-Only and Auto-populate based on E-Voucher Amount and Quantity. (E-Voucher Amount*Price).
Record Producer: Raise E-Wallet Request for your Mentee
- Requested By – Read-only, Auto populated by logged in user.
2. Requested For – Show only the users whose manager is logged in user.
- Type of Award/Appreciation – Choice Values:
- E-Wallet Amount to be added - Based on Type selected, auto populate the amount linked to it.
- Watchlist – List of users who can be added like Senior Manager, Delivery Head, Account Manager, etc.
Thank You
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi,
Week 2 completed. Let's move forward!
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@Community Alums
I added in watchlist variable - type specification- variable attributes - glide_list
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
To populate the project account on catalog item is not working, io am trying using GlideAjax.
Please help me where i am going wrong.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @nowGurukul,
Please help to autopopulate the below.
Project/Account – Read-Only. Auto-populate based on Requested By from Employee record.
Requested by refence to user table, and trying to autopopulate Project/Account by GlideAjax but it is not working.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @Community Alums
try the as per the below screen shot.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @dgarad,
Can you please confirm Requested By referring to sys_user or Employee table. Because when I have created the variable Requested By which refer to sys_user table, in this case in autopopulate referencece is taking the sys_user and i am enable to to change it as employee table.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi @Community Alums
Requested By referring to Employee table.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello @nowGurukul
I have completed all the things for the week 2.Snapshots down below ,Let me know if anything is missed.