Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Power Automate and two SharePoint online lists

(0) ShareShare
ReportReport
Posted on by

I am fairly new to SharePoint online and Power Automate and looking for a solution to do the following:

I have two lists

  • List 1: Budget name, Expense Code, Allowance and Total Budget available.
  • List 2: Item Name, Amount, Expense Code

I'm looking at a way for list one to be updated, with the value from amount on List 2 subtracted based on the expense code used.

For example:

If I input one laptop at £200 using expense code EA4 then List one will update to have that amount removed from the budget name & amount and figure populated in total budget available.

Any suggestions or guidance as I've been looking but can't seem to figure it out or find a way.

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hi,

     

    Would it be possible to get some advice as i understand it works when an item is created but doesn't work then moditifying the amount

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    @ScottShearer Here is the thread i created and had received some advice on however the problem i'm finding is it's affecting all as opposed to only those with an expense code of EA4 etc

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hi Sorry to follow up on this i'm finding that the figures entered against budget code are not adding up

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hi,

     

    For some reason i now have a slight issue.

     

    When i add the following entries to List 2, it's causing a problem

    Gelegeta_0-1626687472668.png

    Gelegeta_1-1626687507872.png

    As you can see it's taken £100 off all rows in list 1 not just the row with BN01

     

    Any advice

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Thanks that's worked great and is everything i needed, i really appreciate your help and support with this.

  • v-LilyW-msft Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hi @Anonymous 

    Please try delete Get Items and create the action again, Then save the flow and run again.

    Best Regards

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hiya,

     

    That's brilliant, i think it's almost there just one final thing - Budget name needs to be a word i.e Home Budget. I changed the Sub query from BudgetName to Allowance and tried to change the column of budget name to a single line of text but get the following:

     

     

    Capture.JPG

  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hi @Anonymous 

    The full flow screenshot as below:

    vLilyWmsft_0-1625468837752.png

    Best Regards

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hey - Thank you for providing the above, are you able to share a screenshot of the full flow so i can make sure mine alligns up

  • v-LilyW-msft Profile Picture
    on at
    Re: Power Automate and two SharePoint online lists

    Hi @Anonymous 

    Do you want to calculate the sum of all EA4 in list2, then subtract the sum from the name in list1 and fill it in Total Budget available when a new item is created?

    vLilyWmsft_11-1625458061776.png

    vLilyWmsft_10-1625457984617.png

    If yes, please refer to as below:

    vLilyWmsft_2-1625457559267.png

    vLilyWmsft_3-1625457559268.png

    vLilyWmsft_4-1625457559275.png

    vLilyWmsft_5-1625457559280.png

    Expression: sub(items('Apply_to_each_2')?['Budgetname'],variables('amount'))

    vLilyWmsft_6-1625457559286.png

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow