web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add 49 days to multipl...
Power Automate
Unanswered

Add 49 days to multiple dates

(0) ShareShare
ReportReport
Posted on by 20
Hi All
 
I am creating a flow and getting all the data from lists.
 
What I want to do is add 49 days but there are multiple dates, so in essence I want a formula that will look at each individual date and add 49 days from them dates
 
For example
 
21/10/1988 + 49
23/11/1988 + 49 etc
Categories:
I have the same question (0)
  • Suggested answer
    rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at
    Hi,
     
    You can use the expression addDays([your_date_property], 49), where [your_date_property] must be replaced for the individual date column for each of your SP List items. To apply this formula to each record from your list, you can use an Apply to each loop within your flow, passing the value property from a Get Items action as input.
     
    For more details about these two steps, you can check the following blogs that I wrote:
    - Using loops and accessing array elements in Power Automate: http://digitalmill.net/2023/07/12/using-loops-and-accessing-array-elements-in-power-automate/
     
    If you find trouble to implement it in you flow, let me know and I can provide you a more detailed step-by-step on how to read data from SharePoint and apply the logic for each record. 
     
    Let me know if it works for you or if you need any additional help!

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/
    https://www.linkedin.com/in/raphael-haus-zaneti/
  • WS-07010823-0 Profile Picture
    20 on at
    Thank you for your answer
     
    Would you be able to provide a flow example for what i need.
     
    I would like to SCHEDULE a flow, that looks at my complaints tracker and when the date reaches 49 days from the column "DATECOMPLAINTRECIEVED" 
     
    The "STATUS" needs to be "Open"
    The "COMPLAINT TYPE" needs to be "SCHEDULE 3 (PSB)"
     
    I would like it to send an email, to lt the supervisors know
  • Suggested answer
    rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at
    Hello,
     
    Of course! Here is a quick demo on how to capture the data from a SharePoint List based on a few conditions (status, compliant type and received older than 49 days) and send an email for each of them.
     
    For this example, I'm working with the following SP List, and will filter it by status = Open, CompliantType = Order and ReceivedAt older than 49 days:
     
     
    I'm using a manual trigger, but the logic is the same if you set up a scheduled flow. Right after the trigger, you must use a Get items action to retrieve the records from your SP List, and filter it accordingly in the Filter Query field (highlighted in green). As you can see below, for Status and CompliantType, which are both choice type columns, I'm simply writing their name, using the eq operator (which corresponds to "equals to") and passing the desired choice labels between single quotes (respectively 'Open' and 'Order). For ReceivedAt, which is a date type column, I'm passing its name, the lt operator (which corresponds to "lower than") and using the expression addDays(utcNow(), -49) to determine the date to be used in the filter (49 days before today), as highlighted in red:
     
    You may also notice that the three conditions are separated by and statements (highlighted in yellow). Make sure to also enclose the addDays() expression between single quotes in the Filter Query. 
     
    At this point, Power Automate is retrieving only 2 records from the List (Poor packing and Missing items) in an array format, since those are the only ones that match the 3 filters that we've set. We now need to iterate this array and send an email to the manager for each of them. To achieve it, you need to add an Apply to each action and pass the dynamic content of value property from Get items action as input, like highlighted below. Within your Apply to each,  add a Send an email action (in my case, I'm using a slightly different action, since the email will be sent from a shared mailbox rather than an individual one) and populate it as you wish:   
     
    Both in the email subject line and body you can combine static texts with dynamic contents, just like I did for the "Title" and "Description" of the complaints. You can also insert expressions within these inputs if needed. 
     
    After saving an testing it, the flow runs successfully and the Apply to each identifies only 2 records for iteration: 
     
    And the "Manager" receives one email for each of the List records that match the filter criteria: 
     
     
    Additional content
    I'm also sharing a few resources related to the topics discussed in this solution, which can be helpful for you or any users that find this thread in the future.
    - Video: Dynamic contents in Power Automate: https://youtu.be/jpledJfaEPQ
     
    Let me know if it works for you or if you need any additional help!

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/
    https://www.linkedin.com/in/raphael-haus-zaneti/
  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at
     
    I just want to confirm if you had a chance to test the solution recommended in my previous message.
     
    If it's working properly and answered your question, please mark it as Accepted Answer, so other users with the same issue can find it easily in the future :)
     
     
    -------------------------------------------------------------------------
  • Verified answer
    WS-07010823-0 Profile Picture
    20 on at
    Hi
     
    This flow has worked thank you, however there is a bit of an issue.
     
    Just say for example I have a record that is 49 days past the complaint date recieved a flow will be acitvated and an email will be sent, however it is sending an email ever single day which i didnt want haha.
     
    All i want it to do is have a look for complaints that are 49 days overdue TODAY and forget the rest.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard