The CreatorCon Call for Content is officially open! Get started here.

VIP Flag on sc_task

Arijit Saikia
Tera Contributor

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

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Arijit Saikia 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.

@Arijit Saikia 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Muhammad Salar
Giga Sage

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)