- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 12:35 AM
Hi Team,
I want send notification if the request is " Production" and send subject body " This request is production only request, in order to processed with this production only request, admins will needs to check in the Provision prod check box and save".
suppose when user request" Dev, Test , Prod " or "Dev, Prod "or Test , Prod this notification should not go through.
This notification send Production Only request.
I want to send notification only for requests that are specially for Production, not for requests that mention Production in the other environments like Dev or Test
Which condition should i apply and send the notification ? , Please help me how to send.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 02:44 AM
then simply in the condition field of that notification check the field value is PROD etc
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 02:53 AM
I can see in the screenshot:
if you have this field in your table then what you were doing was correct
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 12:38 AM
in the advanced notification condition use script to check instance name
var instanceName = gs.getProperty('instance_name');
if (instanceName == 'prodinstancename') // give the prod instance name here
answer = true;
else
answer = false;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 02:15 AM - edited ‎04-14-2025 02:23 AM
Hi @Ankur Bawiskar ,
I have written above code in Advanced Condition, But notification not triggered.
This Environment's stored in the : cmdb_ci_environment table
Can you please look into the above screen shot, Please help me any modification required.
Thank you for your responce.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 02:19 AM
what do you mean by production request?
notification is on which table and what's your actual business requirement
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 02:40 AM
what do you mean by production request? : When user select Production only environment at the time of submission this notification needs to be sent for Cloud group.
Notification is on which table : u_cloud_intake_request
what's your actual business requirement : when a users submits a request Production only , a email notification should be triggered to the Cloud group. if the user adds other environments like Dev or Test along with production , the notification should not be triggered.
EX:
Request for "PROD" environment only, send notification
Request for "PROD and Test" environments , Do not send notification
Thank you.