Hi @Strömberg Tuukka (Sp-Liitto External) ,
Based on my research and testing, you can try the following Flow:
This is the list:
For the Deadline and AP ID column, since you didn't say what type they are, I use the single line of text type.
This is the flow:
1, Get items perform the first filter based on Deadline equal to 2.
2, Get filter result.
3, Perform a second screening based on the person assigned to, tabulate the results, and send the email.
The input are there:
union(body('Select'),body('Select'))
items('Apply_to_each')?['Personemail']
item()?['assignto/DisplayName']
item()?['Deadline']
item()?['APID']
items('Apply_to_each')?['Personemail']
The result:
Hope this helps you.
Because the Q&A forum currently does not support Power Automate, and I am not very good at it, the answers may be flawed. If there is any confusion, please feel free to contact us.
Updated on 11/1/2023
according to your reply, that would require changes in two places:
- Change the filtering part of deadline to the following:
The input are there:
utcNow('yyyy-MM-ddThh:mm:ssZ')
formatDateTime(addDays(utcNow(),2),'yyyy-MM-ddThh:mm:ssZ')
- Modify the date-related parts of the output result table. Please note the time difference between the applications. In my environment, the time difference between Outlook and SharePoint is 1 hour:
The input is there:
formatDateTime(addHours(item()?['Deadline'],-1),'yyyy-MM-ddThh:mm:ssZ')
And the result:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.