cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

 

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
Highlighted
Dual Super User
Dual Super User

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

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

 

 

Highlighted
Super User
Super User

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

@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
Highlighted
Helper IV
Helper IV

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

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? 

Highlighted
Dual Super User
Dual Super User

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

@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

Highlighted
Helper IV
Helper IV

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

what  should be  the source time zone in flow?

Highlighted
Super User
Super User

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

@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
Highlighted
Community Support
Community Support

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

 

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

Highlighted
Helper IV
Helper IV

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

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
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (10,352)