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 Apps / Business Rule - Set Fi...
Power Apps
Unanswered

Business Rule - Set Field value to current date time

(0) ShareShare
ReportReport
Posted on by 54

In Business Rules or Business Process Flows, is it possible to set a column value into the current date time?

 

I tried using a Formula Column to use UTCNow, however it's volatile and recalculates every time.

I would like to record the current date time to a field, and have it be static.
It's relatively simple in canvas apps using Patch, but is it possible in Model Driven Apps?

 

I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @noelflores ,

     

    You could use the 'Created On' field directly, which records when the record was created.

    vbofengmsft_0-1705633617681.png

     

    Best Regards,

    Bof

     

  • nwelflores Profile Picture
    54 on at

    Thanks, so I was thinking of using the Created On to calculate the difference from another date time value. 

    As in a powerfx patch statement: DateDiff(Created On, Now(), TimeUnit.Minutes) to get the duration in minutes.


    But, is it possible in a Business Rule/Business Process Flow?

     

     

     

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @noelflores ,

     

    Couple of things that may help;

    1. CreatedOn does keep a note of the Date and Time of the record creation and will stay static always.

    2. In-case you need to store CreatedOn on some other DateTime or Date field then you can simply use BR/Flow/JS/Workflow/Plugin to populate the field with respective Data.

    3. If you are using BR, note it will trigger every time and stay active, so you need to keep a detection whether the custom field is Blank then set current time (You may encounter incorrect dates or invalid bcz your utc and local time may vary or the offset doesn't fall in proper range due to an offset).  

    4. Better way is to create a Flow that will trigger when record is created and then update the same record with utc() into your custom Field. (Note: CreatedOn is a system field cannot be modified so custom field is needed).

    5. You can try Plugin as well to update the records faster.

    6. JS is an option but I'd not recommend in-case you import your data, the date field won't be updated as JS requires context.

     

    Hope this helps

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard