cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sidhant_02
Post Prodigy
Post Prodigy

Adding Holidays and Notifying users

Hi everyone,
So few months back I had designed a flow (Power Automate flow) that collects all users from a Microsoft Teams group (with headers in the excel sheet: Name, Email, Dates of the week) this file is created at the start of the week (i.e. Monday at 9:30 am IST) and a message is shared on the Teams channel that the file is being created for the week please enter your work mode for the current week (WFO - Work From Office and WFH - Work From Home).
But there were some issues like if a holiday comes in (like on Monday like for New year 1st Jan) in this case no user will login and fill in the timesheet (as it's a Holiday 😉) so in such cases I wanted the flow to fill it as 'Holiday'.
So my flow looks like this:

Sidhant_02_0-1704699589554.png

This flow creates an Excel which looks like this:

Sidhant_02_1-1704701149623.png


So I created a HolidayList excel which has all the list of holidays as per my region

Sidhant_02_2-1704701255544.png


So now I was thinking how to refer this (holiday list sheet) and if there is any date that is present and matches with one of the dates in the week (like 26th Jan is a Republic Day which is on Friday) so for that week on Friday the flow should add the value to all rows for that day (for all users) as 'Holiday'/ 'Holiday_name (Republic Day) Holiday'.


And the next thing that I was thinking of sending a reminder (at-least for two days like Tuesday,Wednesday: For users who have not filled the time sheet 'Please fill your work mode time sheet for the week' and next week (the previous week timesheet should not be editable for users)

So if anyone has any idea about this please let me know it would help and if any more information is needed do let me know.

Regards,
Sidhant.

51 REPLIES 51

Hi @BCBuizer ,
I did changed the format to Text for the Date column in the Excel

Sidhant_02_0-1713420398532.png

(Just added 20/4/2024 : Friday as holiday for test purpose) and ran the flow but there was no change so when I checked the compose action, I observed it was directly taking the else part

Sidhant_02_1-1713420562225.pngSidhant_02_2-1713420601085.png

Updated Compose block code: (That is getting all the users data from the Teams group only not populating the Holiday text in the respective column, even after providing the neccessary condition in the value {key-value pair}

{
  "SNo": "@{variables('varCounter')}",
  "Employee Name": "@{items('Apply_to_each')?['displayName']}",
  "Employee Email": "@{items('Apply_to_each')?['email']}",
  "@{split(outputs('Headers'),',')[3]}": "@{if(contains(join(body('Select'),', '),split(outputs('Headers'),',')[3]),'Holiday','')}",
  "@{split(outputs('Headers'),',')[4]}": "@{if(contains(join(body('Select'),', '),split(outputs('Headers'),',')[4]),'Holiday','')}",
  "@{split(outputs('Headers'),',')[5]}": "@{if(contains(join(body('Select'),', '),split(outputs('Headers'),',')[5]),'Holiday','')}",
  "@{split(outputs('Headers'),',')[6]}": "@{if(contains(join(body('Select'),', '),split(outputs('Headers'),',')[6]),'Holiday','')}",
  "@{split(outputs('Headers'),',')[7]}": "@{if(contains(join(body('Select'),', '),split(outputs('Headers'),',')[7]),'Holiday','')}"
}


So any guess that what might be the issue?.

Regards,
Sidhant.

BCBuizer
Multi Super User
Multi Super User

Hi @Sidhant_02 ,

 

I see you still left the wrong date formatting in your test item:

BCBuizer_0-1713423613403.png

BCBuizer_1-1713423692021.png

 

Changing the value for this item in the Date column of your Excel to "20/04/2024" should result in a positive hit.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Hi @BCBuizer ,
Oh I almost forgot about that thanks for pointing that out. I made the update in my excel

Sidhant_02_1-1713431329917.png

And when I ran the flow, I got the expected o/p that I needed:

Sidhant_02_2-1713431452412.png


The excel :

Sidhant_02_3-1713431529648.png


Thank you for helping me in figuring this out and getting the expected response the query replies continued for quite a while but in the end we finally were able to figure out things and get it done. I will mark the latest compose action as solution.

Thanks & Regards,
Sidhant.

Sidhant_02
Post Prodigy
Post Prodigy

Hi @BCBuizer ,
Today when the flow ran on its usual execution time (9:30 am).  This week on 01/05/2024 is a Holiday as per the Holiday list excel:

Sidhant_02_0-1714366271197.png

So when I checked the flow in successful run I am able to see the Holiday for 01/05/2024 which looks as follows (for all users)

Sidhant_02_1-1714366396681.png

(The above image shows 'Holiday' is shown or inserted for one of the user Rashmi)

Sidhant_02_2-1714366527494.png


But when I was opened the file to enter work mode for this week, I observed that the 'Holiday' placeholder text was not added for 01/05/2024 column in the Excel,.

Sidhant_02_3-1714366750720.png

So I am not sure why its not working as last week when I tested the flow I was able to see the ''Holiday", but somehow the Holiday test is not appended into the sheet. 
Any idea what is the problem here, (The query is marked solved but this was unexpected so thought that I mention the same).

Regards,
Sidhant.

BCBuizer
Multi Super User
Multi Super User

Hi @Sidhant_02 ,

 

Are you sure you are checking the right file? I see that besides the missing placeholder, the formatting of the dates in the column headers are also off: 

BCBuizer_0-1714389550768.png

 

Perhaps you are looking at a file that got created in the past?



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Hi @BCBuizer ,
I did recheck but no the screenshot that I shared earlier was of the file that got created today (i.e. 29/04/2024) 

Sidhant_02_0-1714392887469.png

(The above file is in OneDrive shared folder referencing the same file to create the file in SP and that's saved in the Teams channel; which you can see in the flow). So as of now I had to manually enter the text 'Holiday' 01/05/2024

Sidhant_02_1-1714394426614.png


Regards,
Sidhant.

BCBuizer
Multi Super User
Multi Super User

Hi @Sidhant_02 ,

 

The flow run details just don't seem to match the screenshot of the table, hence something external, like checking the wrong file, must be causing this. Unfortunately I can't tell from this end what that thing may be. 

 

What I'd suggest is re-run the flow and see the results as they are coming in.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

HI @BCBuizer ,
As you suggested, I re-executed the flow as you said.

Sidhant_02_0-1714454974538.png

 

Sidhant_02_1-1714455024084.png

Sidhant_02_0-1714458563269.png

Kindly ignore the formatting part but now the above is the latest file run generated after executing the flow (manually) but still it has not appended the 'Holiday' text for tomorrow (even though its an Holiday as per the Holiday list excel)

Sidhant_02_1-1714458671437.png



The Power automate flow:

Sidhant_02_2-1714458716345.png

Sidhant_02_3-1714458773049.png


As you can in the flow we can clearly see the 'Holiday' text is present for tomorrow (01/05/2024) but the same is not getting reflected in the excel.

Any idea about this?.

Regards,
Sidhant.

BCBuizer
Multi Super User
Multi Super User

HI @Sidhant_02 ,

 

Can you please share the details for the action in which the headers are define and for the Create table action? I suspect the key to resolution is in there due to a mismatch in keys / column names: 

BCBuizer_0-1714459618576.png

 vs.

BCBuizer_1-1714459671567.png

 



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Hi @BCBuizer ,
Sure, here are the details:
Header component

Sidhant_02_0-1714461309970.png


Create table action:

Sidhant_02_1-1714461380035.pngSidhant_02_2-1714461426003.pngSidhant_02_3-1714461445424.png


Regards,
Sidhant.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

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!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

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 in the Forums 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 of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (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. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     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 Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     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 Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

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.    

Updates to Transitions in the Power Platform Communities

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

Users online (2,398)