So I have two tables the "products" table and the "Wholesale Products Sync", the trigger of this automation is when a field is unchecked in the "products" table I would run this find records action:
then I would run this script to delete the record in "wholesale products sync" but I get an error: