Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Set date and time for column when the value of a different column is changed within a model driven app

I have one column called "Key Sent" which is a Yes/No data type. The default value is "no". I want to record the time when a user changes this column from 'no' to 'yes'.


To try to solve this I created another column called "Key Sent On" and I made it a calculated field where if the value of "key Sent" was yes then "Key Sent On" would get NOW(). However, NOW() only give the users current time and constantly changes as time goes on.


I'm not sure how to approach this now. Do I make a workflow within the business process flow of the overall data type? Do I make an automated  cloud flow in power automate? Do I make a business rule? I tried these but I ran into different issues with each of them.


I feel like having a calculated column would be the easiest but I don't know how to stop the calculation or only make the column calculate when the value of "Key Sent" is changed from "no" to "Yes".

Solution Sage
Solution Sage

What is currently changing the Key Sent column value to a "Yes"? Can you have that same process update your Key Sent On timestamp?

Regular Visitor

The user is manually changing "Key Sent" to yes. I guess the user could also manually input the date, but it would be nice if they didn't have to.


I also want to have other parts of the business process flow be time stamped liked this. I feel like all that data will not be collected if it is up to the user to input all of the dates.

OK, I know business rules won't work here, because you can't put a function like Now() into a value-setting field. I'd try a cloud flow for when a "Dataverse row is added, modified or deleted". That type of flow can be filtered to activate only on changes to the Key Sent column (and filter further still to when it is marked "yes") and then you can use an update row block to set the time for the Key Sent On using utcnow() and adjusting for your time offset.

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,367)