- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 09:22 PM
Hello there, Can you add an alert message to a Catalogue Item via servicenow portal using Flow Design? If so, please kindly provide the how to?
I am looking to create a Flow Design for one of our Catalogue Items. The scenario would be if a Requester adds a name to 'Who is Request for?" > Then the Flow to:
1. Look up Hardware assets table for 'Allocated to' field
2. If the 'Allocated to' has the 'requested for' name, then
3. Show an Alert message advising the Requester is already assigned a Computer, then
4. Clear the 'Who is this Request for' field
This is so that users doesn't raise a request for a computer if they already have one. Is this possible via Flow Design or would this be a client script? Or what would be the best method?
Thank you.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 09:42 PM
Hi,
alert() is client side code and flow runs in background.
so not possible
you will require onChange on that variable and use GlideAjax to verify
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 01:56 PM
Thank you for your reply Hitoshi - appreciate it! Sorry for my late response,! In answer to your queries:
1. Yes, there is a Who is this Request for field.
2. Will use the cmdb_ci_computer table and within that table will use the assigned_to field
3. Yes the requested_for is from the User table
As the other 2 above have replied & suggested an onChange with GlideAjax script.
Regards,