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

Assign to me UI Action

anas_m
Tera Contributor

Hi ServiceNow Community,

 

I'm trying to configure the UI Action "assign to me" for incident table to match some requirements. I want that when user  click on it some checks be performed:

1- If a user is member of only one group then the fields assignment group and assigned to are populated with the corresponding values

2 If a user is member of more than one group a list of all the groups to whom he is belonging to should be displayed asking him to pick the corresponding group then update the two fields (assignment group and assigned to).

 

Could you please help ? 

 

Regards

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @anas_m 

It is OOTB, given by ServiceNow. only issue is it hidden on form level.

 

AGLearnNGrow_0-1710182275987.png

 

Enable it on form, and work done. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG ,

 

Thanks for your answer, however it's not what I'm looking for. I want to match those two prerequisites when I click on the UI Action

1- If a user is member of only one group then the fields assignment group and assigned to are populated with the corresponding values

2 If a user is member of more than one group a list of all the groups to whom he is belonging to should be displayed asking him to pick the corresponding group then update the two fields (assignment group and assigned to).

Hi @anas_m 

 

 

Check this:

 

https://www.servicenow.com/community/developer-forum/auto-populate-assignment-groups-for-requested-f...

 

Something simliar for baseline solution. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG ,

 

Thank you for the response, finally I was able to do it like that

 

current.assigned_to = gs.getUserID();
current.assignment_group = gs.getMyGroups();

Regards