We need to Retire Groups Group type ONLY contains SME and not mapped to any SO as SME Group and also

sajampan
Mega Contributor
 
5 REPLIES 5

GlideFather
Tera Patron

Please @sajampan provide more details, this is not google, you can describe your requirement in more details  😜

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @sajampan 

Get the list of all groups that are mapped to a CI and where the type is ABC.
Then copy those groups and delete (or remove) them from the CI

DrAtulGLNG_0-1755690478675.png

 

*************************************************************************************************************
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]

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

AshishKM
Kilo Patron
Kilo Patron

Please write complete use case along with some pics, so community can help in better way. 

 

You other post for same type query.

 

https://www.servicenow.com/community/developer-forum/script-for-group-type-only-contains-sme-and-not... 

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Nikhil Bajaj9
Giga Sage

Hi @sajampan ,

 

Although your question is incomplete but what i understoof that you want to deactivate groups Where type contains SME and which are not mapped to any Service Offering. If yes, you can do it by background script. Where you can use encodedquery() if you have the exact filter condition else use addquery with filters and change state of Group to Deactive.

 

If my answer helepd you, please mark it solution accepted.

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj