web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Building dynamic power...
Power Automate
Unanswered

Building dynamic power automate flow

(0) ShareShare
ReportReport
Posted on by 8

Hello,

I would appreciate it if anyone could advise me on my existing flow. Let me describe what my current flow does:

  • It's a manually triggered flow
  • It calculates the sum of unpaid invoices and the information in onedrive.
  • Once the calculation is done, it sends the email to the vendor listed in another Excel document.
  • Right now it is calculating one vendor and sending emails to only that vendor's email address. For the next vendor, I need to get another unpaid invoice details and update the email list.

What I want to do further 

  • The flow will dynamically get another file from onedrive, calculate the sum and send email to those email addresses listed in the existing Excel file (which has all the email addresses of all the vendors).
  • For example, Vendor ABC has a sum of unpaid invoices of $100 due. Then an email will send out to abc@abc.com then the flow will loop back to update the sum of CBA which has unpaid invoices of $200 due and send the email to cba@cba.com

I hope I demonstrated what I have achieved so far and what I need to do. Any help/advice would be highly appreciated.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    Can you provide a screenshot of the existing flow?

  • SKLahiri Profile Picture
    8 on at

    Here is my current workflow,

     

    PA_WF.jpg

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    Please break that screenshot up into multiple pieces.  The resolution is so low its unreadable.

  • SKLahiri Profile Picture
    8 on at

    Flow_1.png

    Flow_2.png

    Flow_3.png

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    The problem will be that the Excel connector you are using to get the rows points to a specific file.  What you need to do is create a new Excel file that is the list of filenames for the individual Excel files that you want to sum and send out emails about.  Then basically after the trigger you read that file and create a loop that loops through all the rest of your flow for each file.  Try putting the name of each file inside a EncodeURIComponent() property.  If that doesn't work you may have to put all the files in a folder and do a list files in a folder to get the files to loop through.

  • SKLahiri Profile Picture
    8 on at

    I am not sure if I am doing it right or not to create a loop that will dynamically get the file from one drive. Please advise.

    Snag_15a98a3.png

    Snag_15aafa5.png

     

    Snag_15ac2df.png

    Snag_15ad185.png

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    Are the invoices being summed up all in one Excel Table? Or is each client in a different xlsx file?

  • SKLahiri Profile Picture
    8 on at

    Each client has a different xlsx file which must be updated every time when an email is sent to that specific client.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard