cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Email Reminders with Conditional Statements and Lookup to 2 SharePoint lists

Hey there,

 

I'd like to create a Flow with email reminders that checks if an employee has already added a record in an app I made. The data source is SharePoint list and there are two lists:

  • Employees (list of all users who are using the app and tp specify some custom columns)
  • App Data (Where we need to check if the employee has submitted a record here)

 

The flow is done on a per daily basis (excluding email), and the flow should check if the user has already submitted a record for that day. If it already has a record for that day, no email should be sent. Otherwise, send a reminder email.

 

I already got the first parts working which is the checking per day:

PANORAMIC-SNAG-00000-19-08-2020.jpg

 

But I'm not sure how to check SharePoint lists together so that for every employee that I have in the Employee list, I need to check if he added a record there. I'm thinking to use the Created By Email so that I can check that with the Employee Email. I did that here:

 

SNAG-00000- 19-08-2020 9.20.44 pm.jpg

 

And after that, I did this:

SNAG-00000- 19-08-2020 9.23.47 pm.jpg

 

What I'm doing for now is trying out to filter that for each employee, I can filter the workday data to check the Created By Email if it's equal to the Employee's Email. I'm having trouble with the following:

  • Checking if the Filter can accommodate to have dates created today (not DateTime, just the date)
  • The data ouput there in my filter doesn't return anything, even if I do have an Employee Email and a record in the Data which is the same employee:

    SNAG-00000- 19-08-2020 9.27.55 pm.jpg

     

    SharePoint list for Data contains this:
    SNAG-00000- 19-08-2020 9.30.04 pm.jpg

     

    For Employee:
    SNAG-00000- 19-08-2020 9.32.16 pm.jpg

 

Any help with those concerns are appreciated. 

 

Thank you!

2 REPLIES 2
Super User II
Super User II

Hi @hexarthrius 

 

Sorry, there's one point I don't understand. You're comparing the employee name with the email?

SNAG-00000- 19-08-2020 9.23.47 pm.jpg

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
 
Cheers
Manuel

Hi @manuelstgomes,

 

The Employee Name  is a Person datatype so I used the Employee Name Email to compare it to Created By Email. In the filter array, it will read as Created By Email is equal to Employee Name Email so I'm comparing emails

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (26,523)