cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tejaswini1234
Helper IV
Helper IV

How can delay untill date in form and current date should have difference between 30 day?

There is date field in form

check wether date in form and  current date has difference of 30 days?

if condition not fulfilled then  it should delay untill having difference of 30 days. 

1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi @Tejaswini1234 ,

 

Please try to use Convert time zone action to get the Date of the specified time zone.

Like:

30.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Tejaswini1234 

 

You would have to use expression in flow along with delay until

 

UTCNOW()  >= addDays(items('Apply_to_each')?['columname'],30)

 

Please note that Flows fail after 30 days, so if your Flow delay is longer than 30 days it will fail

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

ScottShearer
Super User
Super User

@Tejaswini1234 

I suspect that this is something that probably belongs in a Flow using a recurrence trigger which runs daily.  That will mitigate the 30 day Flow maximum run time as mentioned by @RezaDorrani .

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

i used utcnow function in  flow,it gives different time from our current time,, but i didn't get indian current  time ,, how can i get  time? 

@Tejaswini1234 

 

Use convertFromUtc to convert to time zone of choice

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

what  should be  the source time zone in flow?

@Tejaswini1234 

It depends on where your data is strored.  SharePoint stores all data as UTC.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

 

Hi @Tejaswini1234 ,

 

Please try to use Convert time zone action to get the Date of the specified time zone.

Like:

30.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

i got following error when selected todays date in date picker while adding 30 days in flow using  

addDays(triggerBody()?['DatePickercontrol'],30,'yyyy-MM-ddThh:mm:ssZ')

 

"BadRequest. The provided 'Wait' action 'until' value '9/5/2019 12:00:00 PM' (UTC) is not supported for the 'Consumption' SKU. The maximum wait duration supported for this SKU is '30' day(s)."

 

how to solve it ?

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,700)