Coding help needed - Assignment Group / Assigned To

JennyBell
Tera Contributor

Hello,

 

I am new to ServiceNow with little coding experience.  I have put my query into CoPilot and also looked through community posts, but don't see my specific situation.

 

I have a form called Service Desk Request.  This request form is currently used by ITIL users and will eventually be used NON-ITIL users if there is not a specific Request form already in our catalog.  This form will also be used by non-ITIL users to request something.  A Task is sent created and currently gets assigned to the opened by user, which 99% opened by a Service Desk group member. 

 

**Note, many of our ITIL users are members of multiple user groups and we need to set the specific Assignment Groups on our tasks**

 

The issue is if a non-ITIL user uses this form.  I need code to do the following: 

- If the Request is NOT opened by a member of the Service Desk group assign the 1st task to the Service Desk.

- If the Request IS opened by a member off the Service Desk group, set the assigned to the opened by user and assignment group as Service Desk.

 

Any guidance is GREATLY appreciated. Thanks!

15 REPLIES 15

Shivalika
Mega Sage

Hello @JennyBell 

 

Please confirm if you checked my answer. Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for my efforts and also it can move from unsolved bucket to solved bucket. 

 

Regards, 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeE