how to remove one type,if group type having more than one type

sajampan
Mega Contributor
 
5 REPLIES 5

Nikhil Bajaj9
Tera Sage

Hi @sajampan ,

 

Can you explain your query properly? What exactly you are asking.

 

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

GlideFather
Tera Patron

Hey @sajampan,

 

That would be a business rule with similar conditions:

GlideFather_0-1755689893551.png

 

Buuuuuuut do you want to remove it for updates only or on insert also?

 

I see a challenge in the design - what if a group has one or no type and then you add two or three types? which one will remain?

 

Then maybe create a onSubmit client script that will allow just one type...

———
/* 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 

First, generate a report (list type) where the count of type is more than 1. Then open each group one by one and delete the entries that are not required — or alternatively, create a background script to remove them in bulk.

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

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

Nikhil Bajaj9
Tera 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