i want to catch some not allowed actions. based on that i have a query which normally returns null. but if the rule is broken, then my query will give not null.
based on that scenario i want to build a tool to run query automatically and if it returns anything than null, the app will send an email to assigned person. can you guys please help me?
I think workflows are more apt for what you're trying to achieve.
You can create a document by transforming your query data to base 64 and the compare your results to the ones for the previous day and create a branch to decide whether the email is sent or not.
Here are two screenshots that can guide you on how to start>