cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cyberco01
Post Prodigy
Post Prodigy

To capture the date based on change of field to a particular value

Hi Team,

I have a Combobox field in the Powerapps form. It can hold 2 values - Approved or Rejected.

I need to capture the date when the value on it changes to Rejected as well as the date when it changes to Approved.

Please Help!!

 

Thanks,

 

13 REPLIES 13
rampprakash
Super User
Super User

Hello @cyberco01,

 

You can try the below

 

rampprakash_0-1632307503200.png

 

 

rampprakash_1-1632307522189.png

 

If the drop down is null set it to blank else set it to current date

 

If(!IsBlank(Dropdown1.SelectedText.Value),Today(),Blank())

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

I need to capture the exact date when it is rejected especially, is there any way for it?

rampprakash
Super User
Super User

hello @cyberco01,

 

you mean want to capture date and time?

rampprakash
Super User
Super User

Hello @cyberco01,

 

You can try this , for testing i have added label

 

rampprakash_0-1632310929519.png

 

 

Text( Now(), "mm/dd/yyyy hh:mm:ss" )

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

Just wanted to know - how I can know if this same value changed to "approved" later.

Hello @cyberco01,

 

You can check

 

If(!IsBlank(Dropdown1.SelectedText.Value),Text( Now(), "mm/dd/yyyy hh:mm:ss" ),Blank())

 

Above code will work if there is only one field for Approved and Rejected

 

if you have multiple filed

 

For Approved:

If(Dropdown1.SelectedText.Value="Approved",Text( Now(), "mm/dd/yyyy hh:mm:ss" ),Blank())

 

For Rejected:

If(Dropdown1.SelectedText.Value="Rejected",Text( Now(), "mm/dd/yyyy hh:mm:ss" ),Blank())

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

@rampprakash , I will surely try this today and update you on this.

@rampprakash, i tried it. I created different columns for each status. When i change the value, the dates are getting replaced with todays date. Please help.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,028)