Showing results for 
Search instead for 
Did you mean: 
New Member

Holiday requests - adding output from one list, to totals in another



I'm in the process of creating a holiday request tool in SharePoint 365.


I have created two lists thus far:


1. A list for employees for them to log their holiday request:








2. A list for admin/management:



















NB. The 'Days Left' column is a calculated column based on 'Total Days - Days Used'.


A) I want to create an approval flow, in order for Management to approve the holiday request.

B) I want to add the 'Number of Days' from list 1, to the 'Days Used' in list 2 (there will only ever be one row per employee in this list).


I have the following built so far:






































Unfortunately, this is where I get a little lost, IE what syntax I use to drag in the 'Number of Days' for the individual item and apply it to the right employee?


I tried the community search function but was unable to find the exact solution to my problem. The closest I came to an asnwer was this post.


Any help would be appreciated.


Many thanks,





Community Support
Community Support

Hi @Polymorph,


According to your description, I created two lists, List A and List B.


In list A, there are columns name and Number of days.



In list B, there are columns name, Total days, days used and Days left (type of calculated).



Then in the flow, use the trigger When an item is created. (you could also use when an item is created or modified). Here, use the List A.


Then action Initialize variable. Name set as Used, Type as Float, and Value as 0.


Then Start an approval action, if the Response is equal to Approved, sent an email to the creator. Then Get items from List B.


After Get items action, add Set variable action, name set as Used, select dynamic content Number of days from the trigger for the Value field.


Then the Increment variable, Name set as Used, select dynamic content Days used from the Get items action.


Finally, use the Update item action to update the days used to List B. And in the field Days used, enter the variable Used.


I have tested it on my side and it works fine.




Please have a try with it.



Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Many thanks, Mabel, your help and the speedy reply are very much appreciated.


Unfortunately, I have hit one small snag at the following stage:


'After Get items action, add Set variable action, name set as Used, select dynamic content Number of days from the trigger for the Value field.'


As I'm looking at list B, I do not have 'Number of Days' as a choice option. I've checked and double checked the preceding actions/content.























Am assuming I've missed something obvious.


Kind regards,




Hi Mabel,


When you get 5 minutes, would you kindly have another look at this one?


Much appreciated,



Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,594)