I have a Stored Procedure tied to a recurring flow. The flow creates an HTML Table then emails the results. This works fine as long as the Date parameter is set within the Stored Procedure (Hard-Coded). However I want to be able to pass in Today's date every day so I don't have to change the date in the query. How can I pass that in there automagically?
Use expression utcNow() function.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
My problem with that is it returns 2019-09-13. My power apps pushes Now() when the button is pushed. So for everything submitted for today's batches, 31 have the date of 2019-09-12 and 1 has the date of 2019-09-13. The date selector in my power apps is configured for UTC, should I change that to local? even then I don't think it will grab all the data for the date.
I am in Honolulu. I want this flow to run daily at 11:50pm local time and pass in today's date.
Thanks for the reply
So the issue is that the DB is set for UTC time. That can not be changed. So what I did was say Date: Now()-.416 which gives me the current local hawaii time and it pushes to the DB correctly.
You could also use the addHours function to convert the timestamp, cause Hawaii is USA (GMT-10), so, you can create an addHour expression:
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Look out for new contribution recognition badges coming SOON!
Join us for the first ever Power Platform Online Conference!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!