No video

Display List of Incidents as per User's location | Query Business Rules | ServiceNow

  Рет қаралды 1,697

LearnIT

LearnIT

Жыл бұрын

For More Information, please check details below:
In this session, I have explained how to Display List of Incidents as per User's location.
==========================BUSINESS RULES============================
Table - Incident
When to Run - Before Query
Scripts -
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var current_user = gs.getUserID();
var usr = new GlideRecord('sys_user');
usr.addQuery('sys_id', current_user);
usr.query();
if (usr.next()) {
current.addQuery('location=' + usr.location);
}
})(current, previous);
If you have any feedback related to the scripting part, please write it in the comment box.
My Playlists for Quick Access for Various Learning Paths:
ServiceNow Interview Questions - • Playlist
ServiceNow Scenario Based Solutions - • ServiceNow Scenario Ba...
ServiceNow Scripting - • ServiceNow Scripting
ServiceNow Advanced Concepts - • ServiceNow Advanced Co...
ServiceNow Concepts - • ServiceNow Concepts
ServiceNow Tips & Tricks - • Playlist
ServiceNow San Diego Release - • ServiceNow San Diego R...
ServiceNow Basics & Overview - • ServiceNow Basics & Ov...
ServiceNow App Engine Studio - • ServiceNow App Engine ...
ServiceNow Shorts - • ServiceNow Shorts
#servicenow #learnit #learnitbyprashant
Thanks for Visiting my Channel . Here I will be sharing all kinds of technical Knowledge. Anyone can connect with me directly for anything as part of ServiceNow Related Query.
Keep Supporting me so that I can continue to provide you good content each time!!😇🙏
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Thank you for Watching My Videos!!!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Пікірлер: 6
@ajitkondekar5954
@ajitkondekar5954 Жыл бұрын
The way you explained the use case is just superb...
@shaileshjenekar9812
@shaileshjenekar9812 Жыл бұрын
Great work and an amazing explanation. Hats off to your consistency brother.
@learnitwithprashant
@learnitwithprashant Жыл бұрын
Thanks for motivating me
@simhareddy1948
@simhareddy1948 6 ай бұрын
Great job... Suppose users are belongs to multiple locations what should i write in query? Can u pls reply me.
@learnitwithprashant
@learnitwithprashant 6 ай бұрын
Yes, you can, replace if condition with while condition
@simhareddy1948
@simhareddy1948 6 ай бұрын
@@learnitwithprashant can u pls provide script
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 5 МЛН
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 16 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 128 МЛН
Real world use case of Query Business Rule in ServiceNow
5:53
Hardit Singh
Рет қаралды 1,8 М.
Dynamic Reference Qualifier in ServiceNow - Use of Business Rule and Script Include
11:25
Global Scope vs Private Scope
14:54
TechWithPri
Рет қаралды 1,3 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 351 М.
Why is anti-immigration sentiment on the rise in Canada?
13:00
The Guardian
Рет қаралды 1,7 МЛН
Why UK 🇬🇧 is going Bankrupt? : Detailed Economic Case Study
20:37
Think School
Рет қаралды 1,3 МЛН
Scheduled Job | ServiceNow Scripting
16:15
snowexpertrohit
Рет қаралды 2,5 М.
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 5 МЛН