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

Community site session details

Session Id :
Power Automate - Using Flows
Suggested Answer

Flow to refresh days open field in a SharePoint list

(0) ShareShare
ReportReport
Posted on by 6
Hi all,
 
I have a SharePoint list that has 'Notification Date' and 'Days Open' fields. I would like to refresh this list daily to update the 'Days Open' field based on the 'Notification Date ' and current date. I have tried several options for this calculation but all fail when the flow is run.
Can anyone provide me wit the expression I should use to complete this.
 
Many thanks in advance
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    Flow to refresh days open field in a SharePoint list
     
    It's best to share what you have because we do not know your format of the data, column names etc so anything is a generic guess.
     
    You said
     I would like to refresh this list daily to update the 'Days Open' field based on the 'Notification Date ' and current date
     
    That doesn't tell me do you want them to be equal, less than, greater than, without 3 days of each other etc so its hard to write your expression
     
    What I can tell you is you need to use formatDateTime and then use the same formatter like "dd/MM/yyyy" on both values so that when it compares its the same
     
    formatDateTime(mycolumnofdata, "dd/MM/yyyy") 
    and now to compare them
    equals(formatDateTime(,mycolumnofdata), 'dd/MM/yyyy'),
           formatDateTime(utcNow(), 'dd/MM/yyyy))
     
     
    now I am assuming your values are compatible with utc, if not you will need to convert it to UTC first for it to work
     
    The back end is utc by default, so it depends wher your data is stored
     
    equals(
           convertToUtc(formatDateTime(,mycolumnofdata), 'dd/MM/yyyy'),
                    yourtimezonehere),
    
           formatDateTime(utcNow(), 'dd/MM/yyyy)
    )

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • Ish S Profile Picture
    23 on at
    Flow to refresh days open field in a SharePoint list
    You can create a calculated column on the SharePoint list and use the DATEDIF function to calculate the days open on the list without creating a flow for this.
     
    Regards,

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

Coming soon: forum hierarchy changes

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
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow