cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tejaswini1234
Level: Powered On

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
Community Support Team
Community Support Team

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
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

 

 

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
Tejaswini1234
Level: Powered On

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? 

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

Tejaswini1234
Level: Powered On

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?

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
Community Support Team
Community Support Team

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

Tejaswini1234
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 357 members 6,627 guests
Please welcome our newest community members: