Help with "Do not send email if 'The query yielded no dataTable'

Early, Brandon 21 Reputation points
2022-09-13T14:00:12.163+00:00

We've been building out our Sentinel environment for a few weeks now and have multiple reports that are being emailed to my team on a regular basis. Only problem is that some of these reports come back with a blank email stating "The query yielded no dataTable".

I'm trying to set up a condition in the logic app to only send an email if there is actual content so we don't have as much noise, but I can't find the right combination for it to work.

I think the condition command with a true and false value is the way to do it, but how can I get my logicapp to pick up on a null value from the query properly?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,088 questions
Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,122 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,141 Reputation points
    2022-09-14T06:03:29.32+00:00

    @Early, Brandon Thanks for reaching out. I will suggest you to navigate to the run history and find the run which has yet no result. Go to your action and check what the response is from the action and based on that you can leverage the condition statement to decide whether you want to send the email or not. In case if you are not able to figure it out then please share the sample response from the action for which the result was null/empty.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.