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

How to automatically add VIP is true as a part of request fulfillment based on the user's title?

Katie20
Tera Contributor

Hello,

I am looking for a solution to have the user tagged as a VIP user based on position title in the MAC form without creating an additional task for an admin to mark as VIP manually. We want to ensure that through the request fulfillment process, when the user is created in the system, their profile shows up as VIP. 

The assumption being this will not be imported from AD.

 

Katie 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So you are having catalog item for this some item with name as MAC?

So are you having any user variable on that form?

once REQ and RITM is created you want to update the VIP as true for that user selected on catalog item?

If yes then you can use workflow run script

var user = new GlideRecord('sys_user');
if(user.get(current.variables.user)){
	user.vip = true;
	user.update();
}

Regards
Ankur

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

Hello,

Thank you for your quick reply!

The MAC form will be used for new hires and transfers in the company

Currently there is no user variable for VIP, just a generic profile type. 

I think I will have to add a new variable onto the new hire form for users to select as true. 

 

Thanks

Katie 

Hi,

So if you won't select existing user then are you saying once catalog item is submitted a new user would be created and during creation the VIP flag should be set to true

Can you share what form it is and what have you started and what is not working?

Regards
Ankur

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

Hi Ankur,

Correct, it would be a new user that is created through the request fulfillment process and once created I would like that user to be marked as VIP.

My challenge is, I am not a developer I am just looking for a solution to submit to a developer to fulfill a business need.

The problem I am trying to solve is when a new user gets created in the system we want to ensure they are tagged as VIP if they are a certain role. This way if they submit an incident support teams can react quicker.  

Katie