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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update field based on ...
Power Automate
Unanswered

Update field based on calculated value

(0) ShareShare
ReportReport
Posted on by

I have a sharepoint list with a field that is called 'remaining days' this is a calculated field based on the current date and and end date.

 

I want to create a power automate automated job that runs every night and checks the remaining days field and if it is less than 25, update a status field with a value

 

the status field is a choice field.

 

I am creating this in power automate and keep getting 

jonny216_0-1706338363704.png

 

Categories:
  • RobElliott Profile Picture
    10,545 Super User 2026 Season 2 on at

    @jonny216 try the following (I've used the classic designer as I still don't really like the new one):

    1-Flow.png

     

    In the following Compose action the expression is: 

    int(split(dateDifference(formatDateTime(utcNow(),'yyyy-MM-dd'),formatDateTime(outputs('End'),'yyyy-MM-dd')),'.')[0])

     

    The left side of the condition is looking at the outputs of the DateDifference compose action:

    2-Flow.png

     

    3-Flow.png

     

    4-SP.png

     

    Rob
    Los Gallardos
    Principal Consultant, SharePoint, Forms and Power Platform, WSP Global (and classic 1967 Morris Traveller driver)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard