cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to get notification when email does not exist in table (Flow)

Hi Guys,

 

I have a question about how to get a notifcation when there is not email exist in the table. 

 

Let me explain you the situation.  I have a simple table on Azure SQL DB. There are 3 columns Reportname, Email, Reipient. And in Blob storage I have a map which is called pdf-distribution. Every day in this map will new reports be added. 

So I created a Stored Procedure which will invoke the reportname see below.

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [RPT].[GET_MAILINGLIST] @REPNAME NVARCHAR(255)
AS

DECLARE @REPORTNAME NVARCHAR(255) = @REPNAME

SELECT   email --STRING_AGG( email, ';')
FROM REF.distributionlist
where reportname = @REPORTNAME


Further when the reportname in Blob storage matched with reportname in the table in Azure DB then the Flow send a email to that person which is the report belongs to.

 

In the attachments I will show you how the flow is created. So what I actually want to achieve is when there is not email in the table for example report 1 has not email and report 2 has email. That I get a notification that there was not email.

 

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

I suggest you post this issue to flow community:

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community/ct-p/FlowCommunity

They will provide you more professional advice.

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

I suggest you post this issue to flow community:

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community/ct-p/FlowCommunity

They will provide you more professional advice.

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,901)