Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Business Rule - Set A Field Value for a Date to Now?

(0) ShareShare
ReportReport
Posted on by 228

I am working on a business rule to populate a "Date Completed" field when Status changes to several options.  When any of these conditions are met, I want to set the Date Completed to Now(). Can this be done?
DV Business Rules for Date Now.png

Categories:
  • cmanning Profile Picture
    228 on at
    Re: Business Rule - Set A Field Value for a Date to Now?

    @Mira_Ghaly - Thank you for your response and for pointing me in the right direction. 

    I created a new formula column "DateClosed" and pasted this code. 

     

     

    If(
     IssueStatus = IssueStatusChoices.'No Issue Found' Or 
     IssueStatus = IssueStatusChoices.'Outside Our Scope' Or 
     IssueStatus = IssueStatusChoices.'Requires ServiceNow Ticket' Or 
     IssueStatus = IssueStatusChoices.'User Failed to Respond' Or 
     IssueStatus = IssueStatusChoices.Cancelled Or 
     IssueStatus = IssueStatusChoices.Resolved, 
     UTCNow(),
     Blank()
    )

     

     

    When a new or existing record's IssueStatus is set to one of the choices listed in the above code, "DateClosed" will bet set to UTCNow().  Otherwise, it is set to Blank().  I have tested this and it works great!

     

     

  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Business Rule - Set A Field Value for a Date to Now?

    @cmanning 

    I would suggest you use a calculated column or a Formula column for that purpose.

     

    Calculated Columns:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/calculated-rollup-attributes#calculated-columns

     

    Formula Columns:

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/formula-columns

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics