VIP Flag on sc_task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 10:28 PM
I have a requirement to include a VIP flag for sc_task if the requested_for is a VIP user. This is required for both Platform and Service Operations Workspace.
I cannot use a OnChange client script(which is used for Incidents).
Dictionary Info: sc_task.request_item.requested_for
Table sc_task
Field request_item
Type reference
Reference sc_req_item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 10:33 PM
you can use the same client script from incident and enhance for sc_task
check this link and enhance, I doubt if this can be achieved on portal
Show VIP flag for Requested for on REQUEST, RITM and on task?
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
05-12-2025 10:57 PM
OnChange client script will work only when we change the Requested For in the sc_task.
But when a catalog item is submitted and the flow creates the sc_task, I dont think onChange client script will work for that scenario.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 12:33 AM
you can use similar script in onChange as well as per OOTB one.
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
05-19-2025 05:56 AM - edited 05-19-2025 05:57 AM
Hello,
Let's assume you have a field vip in sc_task.
Create a flow variable in flow designer and write script to query sys_user with req_for sysid. Check if user is vip then return this variable as true or false.
Now , when creating sc_task select vip field (for value use data pill to select your flow variable)