Ankur Bawiskar
Tera Patron

@snow_beginner 

create a custom flow action, accept 1 string as input and other input as table name, have output as count

In that flow action, you can use script step and use GlideRecord and encoded query (use the condition passed as input), set the count as output variable

you will have to use Lookup Records on that table and then call that flow action, then use IF logic to know the count and based on count 0 or more than o you can update that checkbox

If my response helped please mark it correct and close the thread so that it benefits future readers.

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