Hi everyone,
I am building a flow that automatically emails the form submitter if the 'Date of Event' is today.
I followed the following discussions:
Here is my flow:
In the Filter Array, the Advance Mode shows @equals(addDays('1899-12-30', int(item()?['Date of Event'])), utcNow('yyyy-MM-dd'))
I created a test file with two rows of records, with the 'Date of Event' as today and another as next year. The flow ran successfully, but no email was sent out.
What can I do to correct the flow? Thank you so much in advance!
Solved! Go to Solution.
Hmm @pnguyen540
There is something not right. Your spreadsheet shows the Date
But the filter gave a number. Please explain exactly how you created the file.
Wait.. is that some kind of calculated column? I bet it is.. and I've been yanking my hair out for nadda. Thats not a date is it? Not really. Thats why it shows a number..
Here is what I would ask.
Open your Excel.
Left Click on the Column Header on the column BEFORE the Date of Event
Then right click the header (it should be highlighted) and then choose Insert a Column.
That column should have like a name of Column1 or something, Please just remember what it is but leave it as is.
In the new fields I want you to type 10/06/2023 for both rows (or however many rows you have).
Then I want you to highlight those new values (just the new date column), and change the format to a Date, but I want you to pick the following
Your dates should look like mine and the other column
Now, go back into your Flow.
-I need you to go to the List rows of a Table.
-And I need you to go to the Table selector and click the down error.
-Then purposely choose the Enter a Custom Value option.
-Immediately after, at the end of the line will be an X click it
-This will take you out of Custom mode and should list the table as selectable
-Select the Table again.
-Now our flow will understand the new column.
In your Filter, I want you to remove the Date of Event column and add the new Column1. It should look like it this. Ignore any dates in the Date of Event Column as we wont be using that Column.
In the Filter you also need to change the utcNow() expression because the format is wrong, since the file has - in the date not /
change this
utcNow('yyyy/MM/dd')
to
utcNow('yyyy-MM-dd')
If you do all that, it should work.
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
Hi @pnguyen540
Thank you so much that it shows that, but here is what i would do first.
above the condition add a Compose Action
In the Expression put
//I want to see this
The output of your addDaysExpression and then a - and then utcNow('yyyy-MM-dd')
So essentially
addDays(INSERT YOUR APPLY TO EACH DATE HERE, int(item()?['Date of Event'])) - utcNow('yyyy-MM-dd')
So that you can see the actual values being compared. I believe they dont match, and its possibly the utcNow versus the date you are using and or, the int value you are getting from Date of Event
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
Hi @FLMike
I apologize that I am slow to understand Power Automate. Can you explain what you mean by:
The date column in the Excel spreadsheet that I am pulling is formatted as YYYY-MM-DD.
Thank you again for your help!
No you did fine, I needed to be a little clearer.
Can you show me the actual Action you added so I can see what was typed in it, I think I know the issue and its on me
Also, why do you put 1899 in there? Is that really the start date you want to add days too?
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
Hi @FLMike
Here is the screenshot of my Compose action and the error I received. My input in the expression was
Hi, @pnguyen540
Sorry yeah thats why it was an error and thats on me to be more clear. You cannot type an entire expression(like this one) at one time. I know it sounds silly but you cant
can you put this in
concat(
string(addDays('2020-01-31', int(item()?['Date of Event']))),
'-',
utcNow('yyyy-MM-dd')
)
I do have a couple of questions though
1. Is Date of Event an Actual Date? or a Number?
2. If you are trying to compare the Date of Event to Today, why are you adding days to it? That would seem to me to make it never work and if its a Date, not a number, doing #1 will definitely mess it up.
3. And where does the first Date come from the 2020-01-31 ???
I guess I just dont understand since you should have a date stored, and you just want to compare that to todays date.. whats all the other stuff fore?
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
Hi @FLMike
I appreciate your patience. To clarify, I am trying to compute the following: if the date is equal to today, email the person on the list.
As for your questions:
What would be your suggestion for a flow that can send an email for those with dates matched today?
After running the instruction you provided, I received this:
Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
Hi @pnguyen540
No worries at all, but that is why you are having issues and it never triggers.
Ok let me type what we will do instead.
Hi @pnguyen540
Yeah thats exactly what I figured would happen because you are trying to turn a Date into an INT and thats not possible
One second Ill type what we will change
OK sorry for the delay I had to eat.
I want you to change your Filter to the Following:
Here is your Original
I want you to change it by doing this
1. Delete the add days please so there is nothing in that box at all
2. Then I want you to click, so the Dynamic Properties/Expression window pops up
3. You should be able to find the Date of Event Property under your List rows present in a table, click it and add that there
4. make sure that in the Right side that you expression says
utcNow('yyyy/MM/dd')
I created this exactly field in my Excel and did all this just to validate it for you.
I list my rows
I then use my filter, Just like I asked you to do, so it will look just like mine
My Compose then does a length(value) to tell me how many rows it found
Since I added a row with todays date, it returned 1 row
If you do this it will work for you
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
Hi @FLMike
So I redid the flow based on your instructions. Here is what I have.
It ran successfully, but no email was sent. So I went into the particular run to see what happened. I noticed that the Filter Array Output did not have the date that matched today. And the date is displayed not in the format yyyy-MM-dd as I formatted in Excel.
What could be the next steps to proceed? Thanks again!
Hi @FLMike
The data comes from a spreadsheet we collected for training events. Here is what it looks like in my Excel spreadsheet.
Is there a way to convert it to be properly formatted for the flow?
Hmm @pnguyen540
There is something not right. Your spreadsheet shows the Date
But the filter gave a number. Please explain exactly how you created the file.
Wait.. is that some kind of calculated column? I bet it is.. and I've been yanking my hair out for nadda. Thats not a date is it? Not really. Thats why it shows a number..
Here is what I would ask.
Open your Excel.
Left Click on the Column Header on the column BEFORE the Date of Event
Then right click the header (it should be highlighted) and then choose Insert a Column.
That column should have like a name of Column1 or something, Please just remember what it is but leave it as is.
In the new fields I want you to type 10/06/2023 for both rows (or however many rows you have).
Then I want you to highlight those new values (just the new date column), and change the format to a Date, but I want you to pick the following
Your dates should look like mine and the other column
Now, go back into your Flow.
-I need you to go to the List rows of a Table.
-And I need you to go to the Table selector and click the down error.
-Then purposely choose the Enter a Custom Value option.
-Immediately after, at the end of the line will be an X click it
-This will take you out of Custom mode and should list the table as selectable
-Select the Table again.
-Now our flow will understand the new column.
In your Filter, I want you to remove the Date of Event column and add the new Column1. It should look like it this. Ignore any dates in the Date of Event Column as we wont be using that Column.
In the Filter you also need to change the utcNow() expression because the format is wrong, since the file has - in the date not /
change this
utcNow('yyyy/MM/dd')
to
utcNow('yyyy-MM-dd')
If you do all that, it should work.
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages