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 / Copilot Studio / Copilot Excel and Powe...
Copilot Studio
Unanswered

Copilot Excel and Power Automate

(1) ShareShare
ReportReport
Posted on by 2
Hello. I have an excel file and I want to create a flow in Power Automate that get data of an specific row removing duplicates and all the values that all the data of that row I want to retorn to Copilot Studio. how can I do that? I am trying with different ways.
Categories:
I have the same question (0)
  • AllanMouraDev Profile Picture
    142 Super User 2025 Season 2 on at

    To achieve this in Power Automate, follow these steps:

    1️⃣ Read the Excel File

    1. Use the "List rows present in a table" action from Excel Online (Business).
    2. Select the File and Table where the data is stored.
    3. If needed, apply an OData filter to get only the specific row.

    2️⃣ Select the Desired Row

    1. Add a "Filter array" action.
    2. In From, select the value from the previous step.
    3. Set the filter condition to get the specific row you need (e.g., ID equals a specific value).

    3️⃣ Remove Duplicates

    Power Automate does not have a built-in "Remove Duplicates" function, so we need to use an Array Union Trick:

    1. Use the "Select" action to format the row data.

    2. Use a "Compose" action with the following expression to remove duplicates:

      union(body('Select'), body('Select'))

      This removes duplicate values because union() merges arrays and automatically removes duplicates.


    4️⃣ Remove Blank Values

    1. Use another "Filter array" action.

    2. In From, select the output of the previous "Compose" step.

    3. Set the condition to remove blank values:

      • Field: item()
      • Operator: is not equal to
      • Value: '' (empty string)

    5️⃣ Return Data to Copilot Studio

    1. Use a "Join" action to convert the filtered array into a single string:

      • From: The output from the "Filter array" step.
      • Separator: , (or any separator you prefer).
    2. Finally, use the "Return value(s) to Power Virtual Agents" action (if using Copilot Studio as a bot backend).

      • Set the response to the joined string.

    Final Output

    Your Copilot Studio will receive a clean, unique, and formatted row data without duplicates or blank values.


    Hope it helps!!

  • David Granados Profile Picture
    2 on at
    I have 1 question, the Row that I want to select is BU, Selecting BU is the correct way?
     

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard