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 Automate
Unanswered

Excel Power Automate

(0) ShareShare
ReportReport
Posted on by 2

Hi

 

I have an PA flow triggered  from Excel - with the flow pointing to the excel file

 

For the future i would want to use this flow over multiple excel files but cant see a way of doing this without creating multiple copy flows and pointing each one to an individual excel file

 

Is there an easy shortcut

Categories:
I have the same question (0)
  • Kapil775 Profile Picture
    28 on at

    Hi @Westport9 ,

     

    I used below steps to achieve the mentioned requirement.

     

    1. Create a cloud flow with trigger type as "When a http request is received". The request received should be of post type and it should have request body. The request body will have information regarding which excel has triggered the flow.

    2. Create office script for each excel similar to below. This script when triggered will make http request to the power automate flow there by triggering the flow. We can add a button in excel for triggering this script. In request body the name(or identifier) of the excel is passed. In below script, excel1 is the identifier for the excel.

     

    async function main(workbook: ExcelScript.Workbook) {
     const response = await fetch('<Power Automate triggering url>', {
            method: 'POST',
            body: JSON.stringify({ x: "excel1"}),
            headers: {
                'Content-type': 'application/json; charset=UTF-8',
            },
        });
    }

    3. In power automate flow, get the excel identifier from the request body. Now we know which excel has triggered the flow. With this information we can point to that excel. For example, in below snapshot, I am using Switch condition to read the excel which has triggered the flow.

     

    Kapil775_0-1687842053674.png

     

    Thanks!

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard