cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
forbudt4u
Resolver I
Resolver I

Flow Test Successful, but...

Here I am again after researching and trying to find a similar post with a solution, but have found nothing.  I'm hoping someone can help me out in diagnosing my issue.  Short and skinny is I have a flow set up to monitor one field in a list and send a reminder email out 30 days prior to a respective date should there be a record in the list that triggers the flow.  Now, the test successfully runs, but it will NOT send the email even though I have a test record that should trigger it.  

 

We are dealing with a Date/Time field, so the first thing I did was to make sure the field formatting matched the flow format, and it does.  So, I'm at the end of my rope trying to find out why this flow isn't sending the email and need some guidance or a shot of whiskey!  Screen shot's below showing the list I'm working from with the date/time format confirmed (Top), the flow as set up (Left), and the flow results showing the email not sending (Right).

 

Calibration Reminder Flow Issue.png

20 REPLIES 20
PrasadAthalye
Community Champion
Community Champion

What is the data type of LeaseCalibrated field (I am sorry for the name as I can not see it clearly in screen shot) ? Does it store Date only or DateTime? If its date time, your filter query should have time factor too. Instead of equals I use Ge something like LeaseCalibrated  ge '2020-08-01 00:00' and LeaseCalibrated  le '2020-08-02 00:00'

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
Pstork1
Most Valuable Professional
Most Valuable Professional

Date fields in SharePoint always include a Date and a Time.  If they are set for Date Only then the time defaults to midnight UTC.  So doing an OData query using eq will never work, since the date is not equal to a date and time.  Change the OData filter in your Get Items to be gt 29 days and lt 31 days.  That should give you some results.



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

@PrasadAthalye & @Pstork1 

 

Okay, I could not get a test to successfully go through by using each one of your solutions individually, so I just combined the logic and was able to get a successful test, but still no email.  

 

I wanted to add that I do understand that SharePoint should always give a time along with the date, but that's why I placed the data output at the top of my original screencap to show that it was only outputting the date with NO time included.  In addition, I wanted to reiterate that there is a integer variable set up as part of my flow (-335 days) which allows the flow to get the date via the varReminderDateStart & varReminderDateEnd string variables I need for the flow to trigger.  

 

Here are the results of the modified flow which covers all times from Midnight to 11:59pm (or 23:59) on the respective day.  I'm lost!

 

Calibration Reminder Flow Issue 2nd Attempt.png

So if you click Click to Download in outputs of GetItems, Do you see any data OR is it empty? 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
Pstork1
Most Valuable Professional
Most Valuable Professional

Just to be clear, the output in your screen capture is the date you set in the variable, which has no time.  The actual dates from SharePoint don't show in your screen capture anywhere.  Those are the ones that always have time associated with them.  One suggestion would be to switch your comparisons to 'ge' and 'le' (Greater than or equal to..) instead of just greater than or less than.  the date with 00:00:00 (midnight) is very possible.



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

@PrasadAthalye  No, I'm not getting any data from the SharePoint list... just the typical flow coding.  

 

@Pstork1 The screencap I'm referring to at the top that's below the list item in SharePoint IS the output data from the list.  I spent all day yesterday trying to diagnose this issue myself and the first thing I did was start with the datetime formatting. So, I created an Output data flow that I manually triggered that would output ALL data for records/items listed in my name where my test record for this current flow resides as well.  The output data from that Output data flow is exactly what the Get Items produced... a Date with NO time associated with it.  

 

I also did go back and change the filters to ge and le but I'm still getting the same results... a successful test, but no email or data being outputted.  

Pstork1
Most Valuable Professional
Most Valuable Professional

Sorry, I was looking at the Flow screenshot, not the SharePoint list.  The list will show a date as date only.  But when retrieved it has always been a date and time.  Nothing in the flow itself was showing the output of the data from SharePoint.



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

OK, I just did some additional testing and it appears that MS has implemented a change to the way this works.  In the past it worked as I described and Date only fields provided the dates as Date and Time with the time set to midnight.  Date only fields in SharePoint now actually provide the date as a date only.  The problem with your original filter is the formatting of the target date.  It has to match the locale formatting that SharePoint is using.  I just ran a new test on a list I have with Date only fields.  This get items works.  Notice the 'mm/dd/yyyy' formatting.

image.png



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

@Pstork1 

I think this is a case of not being able to see the forest through the trees here.  What I'm trying to explain is I totally understand the list won't show the time in the actual list (unless you tell it to in the column properties).  That's why I created a totally separate flow that outputs ALL Data from SharePoint records where I am the listed Holder.  I wanted to see what SharePoint was actually passing to the flow, and that's why I posted the result of the output under the list item in white with an explanation note.  If you look, you can see the white screencap showing the corresponding columns with the results (or data output)... "Calibration_x0020_Required":true etc.  The LastCalibrated column passes on "LastCalibrated": "2020-08-01" with NO Time listed in addition to the date.

 

Below is a screencap of the Data Output Flow with the corresponding data output from the results of the flow.  You can also see with the blue dashed callout that the Date Modified column is passing time through, so that tells me that SharePoint is distinguishing between Date and DateTime columns.   That's why this is totally throwing me for a loop because regardless of the route I'm taking, I'm not getting the result I need in the actual flow I'm trying to build. 

 

Data Output Flow.png  Data Output.png

Pstork1
Most Valuable Professional
Most Valuable Professional

Check my subsequent post.  MS has evidently changed the behavior since I last checked this out.  I think the issue now is that you are matching the formatting of what you see in the output, 'yyyy-mm-dd'.  I see the same thing in the output of Get items, but the filter actually worked for me when I used 'mm/dd/yyyy' which is what you see in SharePoint.  Try changing the format of what you are testing for and see if that works.

Output from Get items

image.png

Working OData filter

image.png



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

@Pstork1 

 

That's why I'm here, cause that's where I originally started and was getting the same results 😅  I've tried everything I can think of with all tests successfully running, but NOT producing any data even though I'm sitting here staring at a list item/record who has a Last Calibrated (or LastCalibrated) date as 08/01/2020.  The only nuance is that the SharePoint list actually shows 8/1/2020 without the Zero preceding the 8 or 1, but the output data does have the Zeros, albeit in yyyy-MM-dd format... which matches the flow formatting.  

 

Where's the Jack Daniels 😁🤣😅

Pstork1
Most Valuable Professional
Most Valuable Professional

So you are saying you tried 

Last_x0020_Calibrated eq '08/01/2020'

and 

Last_x0020_Calibrated eq '8/1/2020'

without using the variable that you are calculating?  I would try that manually first then we can proceed from there.  I tested it on a Date Only field in SharePoint and it works for me.



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

@Pstork1 

 

Okay, so I've tried bypassing all the variables and doing direct entry dates in the following formats...

 

TEST FAILS due to column not existing (because it's named LastCalibrated in the column properties)

Last_x0020_Calibrated eq '08/01/2020'

Last_x0020_Calibrated eq '8/1/2020'

Last_x0020_Calibrated eq '2020-08-01' 

Last_x0020_Calibrated eq '2020-8-1'

 

TEST SUCCESSFUL but does NOT produce output data or email

LastCalibrated eq '08/01/2020'

LastCalibrated eq '8/1/2020'

LastCalibrated eq '2020-08-01' (This one matches the output formatting from test output flow)

LastCalibrated eq '2020-8-1'

Pstork1
Most Valuable Professional
Most Valuable Professional

Sorry, I used the wrong column name in the code.  It should be the second one.  I actually went the other way and used the variables as you did and I'm still getting output.  After one of the successful runs did you click on the Click to download link in the output section of the get items to make sure that you actually retrieved the records? 

 

If you did then we need to start looking at configuration of the loop and the emails.  Is the field Holder a person column or a single line of text with an email address?



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

@Pstork1  I'm not getting any record data being returned even though I know I have 1 record that should trigger the flow.  That's why I think it's a date formatting issue as the holder column is a person column.  I have many other flows set up to email using this same column with no issues.

Can you try these?

 

Last_x0020_Calibrated gt '07/31/2020'

and 

Last_x0020_Calibrated lt '8/2/2020'

 

OR 

 

Last_x0020_Calibrated gt '2020-07-31'

and 

Last_x0020_Calibrated lt '2020-08-02'

 

Either of these must return result... 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
ccc333ab
Solution Sage
Solution Sage

This is crazy, but from what I can see, your logic should be working. I just created a test flow on my end, with same date format in SharePoint and hardcoding in the date like you did and works just fine. 

 

Just by you saying I have many other flows set up to email using the same column with no issues makes me wonder if this is just a "Microsoft feature"? 

 

If the flow isn't crazy big, maybe you can just do the following: 

1. Recreate the flow with just using a Get Items call, and a hard coded filter query for that date (LastCalibrated eq '2020-08-01'). Test.... 

2. And if that works, then just rebuild the flow around this Get Items call...and scrap your existing flow

3. If it doesn't work then what did you do for the other flows that do work???

Pstork1
Most Valuable Professional
Most Valuable Professional

All I can tell you is that I replicated your flow and my Get items works fine.  One record in the list with the expected date and one record returned.

image.png

 



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

@Pstork1  I understand, but that's why I'm here cause something is broken.  Thank you for your help.

 

I'm likely going to try @ccc333ab recommendation and see what happens... I'll report back.

Helpful resources

Announcements

Tuesday Tip | How to Get Community Support

It's time for another Tuesday Tip, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.       This Week: All About Community Support Whether you're a seasoned community veteran or just getting started, you may need a bit of help from time to time! If you need to share feedback with the Community Engagement team about the community or are looking for ways we can assist you with user groups, events, or something else, Community Support is the place to start.   Community Support is part of every one of our communities, accessible to all our community members.   Within each community's Community Support page, you'll find three distinct areas, each with a different focus to help you when you need support from us most. Power Apps: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pa_community_support Power Automate: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpa_community_support Power Pages: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpp_community_support Copilot Studio: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pva_community-support   Community Support Form If you need more assistance, you can reach out to the Community Team via the Community support form. Choose the type of support you require and fill in the form accordingly. We will respond to you promptly.    Thank you for being an active part of our community. Your contributions make a difference!   Best Regards, The Community Management Team

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!    

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Users online (6,674)