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

Exclusive LIVE Community Event: Power Apps Copilot Coffee Chat with Copilot Studio Product Team

It's time for the SECOND Power Apps Copilot Coffee Chat featuring the Copilot Studio product team, which will be held LIVE on April 3, 2024 at 9:30 AM Pacific Daylight Time (PDT).     This is an incredible opportunity to connect with members of the Copilot Studio product team and ask them anything about Copilot Studio. We'll share our special guests with you shortly--but we want to encourage to mark your calendars now because you will not want to miss the conversation.   This live event will give you the unique opportunity to learn more about Copilot Studio plans, where we’ll focus, and get insight into upcoming features. We’re looking forward to hearing from the community, so bring your questions!   TO GET ACCESS TO THIS EXCLUSIVE AMA: Kudo this post to reserve your spot! Reserve your spot now by kudoing this post.  Reservations will be prioritized on when your kudo for the post comes through, so don't wait! Click that "kudo button" today.   Invitations will be sent on April 2nd.Users posting Kudos after April 2nd at 9AM PDT may not receive an invitation but will be able to view the session online after conclusion of the event. Give your "kudo" today and mark your calendars for April 3, 2024 at 9:30 AM PDT and join us for an engaging and informative session!

Tuesday Tip: Unlocking Community Achievements and Earning Badges

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!     THIS WEEK'S TIP: Unlocking Achievements and Earning BadgesAcross the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. These badges each signify a different achievement--and all of those achievements are available to any Community member! If you're a seasoned pro or just getting started, you too can earn badges for the great work you do. Check out some details on Community badges below--and find out more in the detailed link at the end of the article!       A Diverse Range of Badges to Collect The badges you can earn in the Community cover a wide array of activities, including: Kudos Received: Acknowledges the number of times a user’s post has been appreciated with a “Kudo.”Kudos Given: Highlights the user’s generosity in recognizing others’ contributions.Topics Created: Tracks the number of discussions initiated by a user.Solutions Provided: Celebrates the instances where a user’s response is marked as the correct solution.Reply: Counts the number of times a user has engaged with community discussions.Blog Contributor: Honors those who contribute valuable content and are invited to write for the community blog.       A Community Evolving Together Badges are not only a great way to recognize outstanding contributions of our amazing Community members--they are also a way to continue fostering a collaborative and supportive environment. As you continue to share your knowledge and assist each other these badges serve as a visual representation of your valuable contributions.   Find out more about badges in these Community Support pages in each Community: All About Community Badges - Power Apps CommunityAll About Community Badges - Power Automate CommunityAll About Community Badges - Copilot Studio CommunityAll About Community Badges - Power Pages Community

Tuesday Tips: Powering Up Your Community Profile

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!   This Week's Tip: Power Up Your Profile!  🚀 It's where every Community member gets their start, and it's essential that you keep it updated! Your Community User Profile is how you're able to get messages, post solutions, ask questions--and as you rank up, it's where your badges will appear and how you'll be known when you start blogging in the Community Blog. 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.     Password Puzzles? No Problem! Find out how to sync your Azure AD password with your community account, ensuring a seamless sign-in. No separate passwords to remember! Job Jumps & Email Swaps Changed jobs? Got a new email? Fear not! You'll find out how to link your shiny new email to your existing community account, keeping your contributions and connections intact. Username Uncertainties Unraveled Picking the perfect username is crucial--and sometimes the original choice you signed up with doesn't fit as well as you may have thought. There's a quick way to request an update here--but remember, your username is your community identity, so choose wisely. "Need Admin Approval" Warning Window? If you see this error message while using the community, don't worry. A simple process will help you get where you need to go. If you still need assistance, find out how to contact your Community Support team. Whatever you're looking for, when it comes to your profile, the Community Account Support Knowledge Base article is your treasure trove of tips as you navigate the nuances of your Community Profile. It’s the ultimate resource for keeping your digital identity in tip-top shape while engaging with the Power Platform Community. So, dive in and power up your profile today!  💪🚀   Community Account Support | Power Apps Community Account Support | Power AutomateCommunity Account Support | Copilot Studio  Community Account Support | Power Pages

Super User of the Month | Chris Piasecki

In our 2nd installment of this new ongoing feature in the Community, we're thrilled to announce that Chris Piasecki is our Super User of the Month for March 2024. If you've been in the Community for a while, we're sure you've seen a comment or marked one of Chris' helpful tips as a solution--he's been a Super User for SEVEN consecutive seasons!   Since authoring his first reply in April 2020 to his most recent achievement organizing the Canadian Power Platform Summit this month, Chris has helped countless Community members with his insights and expertise. In addition to being a Super User, Chris is also a User Group leader, Microsoft MVP, and a featured speaker at the Microsoft Power Platform Conference. His contributions to the new SUIT program, along with his joyous personality and willingness to jump in and help so many members has made Chris a fixture in the Power Platform Community.   When Chris isn't authoring solutions or organizing events, he's actively leading Piasecki Consulting, specializing in solution architecture, integration, DevOps, and more--helping clients discover how to strategize and implement Microsoft's technology platforms. We are grateful for Chris' insightful help in the Community and look forward to even more amazing milestones as he continues to assist so many with his great tips, solutions--always with a smile and a great sense of humor.You can find Chris in the Community and on LinkedIn. Thanks for being such a SUPER user, Chris! 💪 🌠  

Tuesday Tips: Community Ranks and YOU

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!This Week: Community Ranks--Moving from "Member" to "Community Champion"   Have you ever wondered how your fellow community members ascend the ranks within our community? What sets apart an Advocate from a Helper, or a Solution Sage from a Community Champion? In today’s #TuesdayTip, we’re unveiling the secrets and sharing tips to help YOU elevate your ranking—and why it matters to our vibrant communities. Community ranks serve as a window into a member’s role and activity. They celebrate your accomplishments and reveal whether someone has been actively contributing and assisting others. For instance, a Super User is someone who has been exceptionally helpful and engaged. Some ranks even come with special permissions, especially those related to community management. As you actively participate—whether by creating new topics, providing solutions, or earning kudos—your rank can climb. Each time you achieve a new rank, you’ll receive an email notification. Look out for the icon and rank name displayed next to your username—it’s a badge of honor! Fun fact: Your Community Engagement Team keeps an eye on these ranks, recognizing the most passionate and active community members. So shine brightly with valuable content, and you might just earn well-deserved recognition! Where can you see someone’s rank? When viewing a post, you’ll find a member’s rank to the left of their name.Click on a username to explore their profile, where their rank is prominently displayed. What about the ranks themselves? New members start as New Members, progressing to Regular Visitors, and then Frequent Visitors.Beyond that, we have a categorized system: Kudo Ranks: Earned through kudos (teal icons).Post Ranks: Based on your posts (purple icons).Solution Ranks: Reflecting your solutions (green icons).Combo Ranks: These orange icons combine kudos, solutions, and posts. The top ranks have unique names, making your journey even more exciting! So dive in, collect those kudos, share solutions, and let’s see how high you can rank!  🌟 🚀   Check out the Using the Community boards in each of the communities for more helpful information!  Power Apps, Power Automate, Copilot Studio & Power Pages

Find Out What Makes Super Users So Super

We know many of you visit the Power Platform Communities to ask questions and receive answers. But do you know that many of our best answers and solutions come from Community members who are super active, helping anyone who needs a little help getting unstuck with Business Applications products? We call these dedicated Community members Super Users because they are the real heroes in the Community, willing to jump in whenever they can to help! Maybe you've encountered them yourself and they've solved some of your biggest questions. Have you ever wondered, "Why?"We interviewed several of our Super Users to understand what drives them to help in the Community--and discover the difference it has made in their lives as well! Take a look in our gallery today: What Motivates a Super User? - Power Platform Community (microsoft.com)

Users online (4,241)