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

Sending alerts to a specific user with an updated holiday allowance

Morning

 

I have two lists. List one is 'Staff_absence_details' which contains staff names and their holiday allocation. The second list is called 'Absence_request' and is where staff request a leave of absence.

 

I have an approval flow which upon approval should take the number of days requested (in the second list) away from the holiday allocation (in the first list). The flow is looping through all the staff names and sending out alerts showing how many days remain for all the staff.

 

How do I make the Flow only subtract from allocation of the member of staff who has requested the leave and alert them to how much holiday they have left? Do I need to build in a condition? The actions which do the maths is below, all help appreciated@

 

Holiday_allocation.png

 

 

Staff_absence_details

1 ACCEPTED SOLUTION

Accepted Solutions
Jcook
Most Valuable Professional
Most Valuable Professional

@darrenfloyd666 

 

Okay, I can fix your filter. But I will need your Get items output without your filter.

Remove your filter in Get items, and set Top count to 1.

 

This is so we only get one record.

 

Please send me the output.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

18 REPLIES 18
darrenfloyd666
Post Prodigy
Post Prodigy

Hi @Jcook  I don't suppose you have an idea how I could resolve this?

 

Thanks

Jcook
Most Valuable Professional
Most Valuable Professional

Hi @darrenfloyd666 

Thanks for reaching out!

 

I might need more information on your flow.

But from what I can see, this might help fix the issue.

 

In your SP list are you storing the email of the user? I am asking because you could filter the SP List on the user who is requesting the time off.

That way the loop is only looping through the one user who is requesting the time


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Hi @Jcook 

 

Thanks for the reply. Yes I'm storing the email in a field called 'Name' and there's also the SP ID field. I have tried to filter in the Get actions but I still get the multiple emails?

 

GetItems.png

Jcook
Most Valuable Professional
Most Valuable Professional

@darrenfloyd666 

 

The Odata Filter needs to specify the column name than the value, like this:

 

Name eq '  '

 

Put your dynamic content in the single quotes.

 

 

You might need to look in the previous run to get the exact name of the Name column


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





darrenfloyd666
Post Prodigy
Post Prodigy

Thanks @Jcook   I think I'm nearly there!

 

I'm getting the following error: The expression "Name equ Darren.floyd@xxx.co.uk" is not valid. Creating query failed." so it's finding the email address. I checked what the field was called in the URL and it said: "&Field=Title". I've now also got an email field for each staff member.
Here's how I've got it configured:

 

Staff_absence.png

Hi @Jcook 

 

Can I use the ID to filter the results returned just so I get the person who made the request?

Jcook
Most Valuable Professional
Most Valuable Professional

Hi @darrenfloyd666 

 

In your run where is this error being shown?

 

To validate the exact column name, I usually like to run the Get items with no Filter and see what the output is in the run. These will be the column names to use.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Jcook
Most Valuable Professional
Most Valuable Professional

@darrenfloyd666 

So once you find the column name to filter on. Lets say it is Title.

 

Than you want to put the dynamic content of the persons Emails address of the requestor. So you would put the Requestor from the approval


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Thanks for your help @Jcook .

I've got a list called Staff Absence Details which has five staff members and their holiday allocation. There's some math functions later in the Flow. When I run the Flow it subtracts the requested leave from all five members and sends five email alerts out where I just want it subtract and send it to the person who has requested it. This is what I currently have but it doesn't seem to be filtering the results. I only want to return the person who requested the leave of absence. 

GetItemsStaffAbsence.png

 

 
Jcook
Most Valuable Professional
Most Valuable Professional

@darrenfloyd666 

 

What is your trigger? How Does the approval kick off?


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





The Flow is triggered when a person adds an item to the Absence Request list:

 

AbscenceRequestFlow.png

Am I missing a filter somewhere else I could apply @Jcook 

Jcook
Most Valuable Professional
Most Valuable Professional

@darrenfloyd666 

 

In your Get items filter use:

 

Title eq ' '

 

Inside the single quotes try putting the dynamic value Modified By Email. Make sure when selecting this value that it is the one from your trigger. Than use an Apply Apply to each loop with value from Get Items. Put the approval inside there.

 

When you try the above. And run the flow, what exactly is happening? 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





@JcookThe Flow doesn't get past the Get Items - it throws the error The expression "Title eq 'Darren.floyd@xxx.co.uk" is not valid. Creating query failed.

Jcook
Most Valuable Professional
Most Valuable Professional

@darrenfloyd666 

 

Okay, I can fix your filter. But I will need your Get items output without your filter.

Remove your filter in Get items, and set Top count to 1.

 

This is so we only get one record.

 

Please send me the output.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Great, thanks @Jcook 

 

Here it is:

 

{"statusCode":200,"headers":{"Transfer-Encoding":"chunked","Vary":"Accept-Encoding","X-SharePointHealthScore":"2","X-MS-SPConnector":"1","X-SP-SERVERSTATE":"ReadOnly=0","DATASERVICEVERSION":"3.0","SPClientServiceRequestDuration":"51","SPRequestGuid":"477291be-3201-4601-b849-b8efbdb40b8c","request-id":"xxx-3201-4601-b849-b8efbdb40b8c","MS-CV":"vpFyRwEyAUa4SbjvvbQLjA.0","Strict-Transport-Security":"max-age=31536000","X-FRAME-OPTIONS":"SAMEORIGIN","MicrosoftSharePointTeamServices":"16.0.0.20106","X-Content-Type-Options":"nosniff","X-MS-InvokeApp":"1; RequireReadOnly","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","Cache-Control":"max-age=0, private","Date":"Sat, 16 May 2020 13:16:24 GMT","P3P":"CP=\"ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\"","X-AspNet-Version":"4.0 ","X-Powered-By":"ASP.NET","Content-Type":"application/json; charset=utf-8","Expires":"Fri, 01 May 2020 13:16:24 GMT","Last-Modified":"Sat, 16 May 2020 13:16:24 GMT","Content-Length":"2544"},"body":{"@odata.nextLink":"https://uk-001.azure-apim.net/apim/sharepointonline/shared-sharepointonl- 0e-00a2-4038-a506-6a59ff49a142/datasets/https%253A%252F%252Ficotechservicescouk.sharepoint.com%252F/tables/1afdcd87-4814-49de-a6d6-ceee06eff40b/items?$top=1&$skiptoken=Paged%3dTRUE%26p_ID%3d1%26RootFolder%3d%252fLists%252fStaff%255fabsence%255fdetails","value":[{"@odata.etag":"\"3\"","ItemInternalId":"1","ID":1,"Title":"Geriant Lewis","Email":{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|geraint.lewis@ .co.uk","DisplayName":"Geraint Lewis","Email":"Geraint.lewis@

.co.uk","Picture":"https:// .sharepoint.com/_layouts/15/UserPhoto.aspx?Size=L&AccountName=Geraint.lewis .co.uk","Department":null,"JobTitle":" Manager"},"Email#Claims":"i:0#.f|membership|geraint.lewis@ .co.uk","Holiday_allocation":25.0,"Modified":"2020-05-15T13:23:57Z","Created":"2020-05-06T09:43:59Z","Author":{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|darren.floyd@icotechservices.co.uk","DisplayName":"Darren Floyd","Email":"Darren.floyd co.uk","Picture":"https:// .sharepoint.com/_layouts/15/UserPhoto.aspx?Size=L&AccountName=Darren.floyd@ .co.uk","Department":null,"JobTitle":"O365 & SharePoint Administrator"},"Author#Claims":"i:0#.f|membership|darren.floyd@icotechservices.co.uk","Editor":{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|darren.floyd .co.uk","DisplayName":"Darren Floyd","Email":"Darren.floyd@ ","Picture":"https:// .sharepoint.com/_layouts/15/UserPhoto.aspx?Size=L&AccountName=Darren.floyd@ .co.uk","Department":null,"JobTitle":"O365 & SharePoint Administrator"},"Editor#Claims":"i:0#.f|membership|darren.floyd@icotechservices.co.uk","{Identifier}":"Lists%252fStaff_absence_details%252f1_.000","{IsFolder}":false,"{Thumbnail}":{"Large":null,"Medium":null,"Small":null},"{Link}":"https:// .sharepoint.com/_layouts/15/listform.aspx?PageType=4&ListId=1afdcd87-4814-49de-a6d6-ceee06eff40b&ID=1&ContentTypeID=0x01009C9AE2D9F6E82341ADCD97B0493FE0D2","{Name}":"Geriant Lewis","{FilenameWithExtension}":"Geriant Lewis","{Path}":"Lists/Staff_absence_details/","{FullPath}":"Lists/Staff_absence_details/1_.000","{HasAttachments}":false,"{VersionNumber}":"1.0"}]}}

Hi @Jcook 

 

I solved the problem by approaching it from a different angle and splitting it into two Flows but wanted to tank you for your help.

Jcook
Most Valuable Professional
Most Valuable Professional

@darrenfloyd666 

 

Glad to help.

That's awesome you were able to get it working!

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Helpful resources

Announcements

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  

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!

Users online (3,196)