cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bsoares
Helper III
Helper III

Trigger automaticaly after 7 days

Hi everyone!

 

How can I implement this in PowerApps?

Thanks in advance!

Powerapps2.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
AllanDeCastro
Advocate IV
Advocate IV

Hello,


I think you could just put an IF condition on the BorderColor property.
The goal would be to compare the "Date in Locker" with "Date in Locker" + 7 days and then put the border in red or blue.

You could also decide to use the boolean for this condition but to do so you would have to do a recurrence flow that is triggered every day to retrieve the records whose "Date in Locker" + 7 days is equal to today's date and for these records update the boolean field to true. Then, you can add an IF condition on the BorderColor property based on this boolean field!


Hope it helps 🙂

 

View solution in original post

For the toggle, the Default property could be set as DateDiff('date in locker',Today())>7 since it reduces to either true or false. If that doesn't work then If(DateDiff('date in locker',Today())>7,"Yes","No") in the Default property of the toggle. 

View solution in original post

5 REPLIES 5
Drrickryp
Super User II
Super User II

Set the Color property of the number in your gallery to If(DateDiff('date in locker',Today())>7,Red,Black)

For the toggle, DateDiff('date in locker',Today())>7 should be sufficient as it will reduce to either true or false.

AllanDeCastro
Advocate IV
Advocate IV

Hello,


I think you could just put an IF condition on the BorderColor property.
The goal would be to compare the "Date in Locker" with "Date in Locker" + 7 days and then put the border in red or blue.

You could also decide to use the boolean for this condition but to do so you would have to do a recurrence flow that is triggered every day to retrieve the records whose "Date in Locker" + 7 days is equal to today's date and for these records update the boolean field to true. Then, you can add an IF condition on the BorderColor property based on this boolean field!


Hope it helps 🙂

 

View solution in original post

@Drrickryp 

 

Hi! The color changed after 7 days! Great! Thanks for your help!

Can you help me with this one? I want the toggle button from No to Yes after 7 days too.

Powerapps1-.png

For the toggle, the Default property could be set as DateDiff('date in locker',Today())>7 since it reduces to either true or false. If that doesn't work then If(DateDiff('date in locker',Today())>7,"Yes","No") in the Default property of the toggle. 

View solution in original post

It worked! Thanks for helping!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,725)