Client Scripting for triggering last order history for catalog item in servicenow portal and service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 10:11 PM
Client Scripting for triggering last order history for catalog item in servicenow portal and servicenow instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 10:55 PM
yes @Amit Verma please update me fast regarding this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 10:59 PM
@1dusjhyahnt Just checked some posts around this. It is not possible to have a common Catalog Client Script across catalog items until the variables of a catalog item belongs to the same Variable Set. Refer https://www.servicenow.com/community/developer-forum/a-single-catalog-client-script-for-multiple-cat...
Do you have a variable set which is common across these 20 Catalog items ? If not, then you need to map Individual On-Load Catalog Client Script only to each catalog item and call Script Include.
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2024 03:26 AM
Hi @Amit Verma
I need this alert for all user not for one user, please tell me what changes i should do ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2024 03:31 AM
No need to change anything. It will work for all the users as we are passing the requestor sys_id dynamically in the client script to the script include via
var requestorSysID = g_user.userID;
g_user.userID gives you the sys_id of the user who is trying to access the catalog item.
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2024 11:16 PM - edited ‎02-06-2024 11:17 PM
hI @Amit Verma
ONLY THIS CODE WORKING FOR admin , its show only admin last order date
Requirement :- Like My Client want when manager approve the request in sc_req_item table , then alert will triggered for user who raised the request previously, for portal when user submit the request then i will triggered the last order date to user who raised the request thats our requirement?? please help me that's urgent