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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get values of 1...
Power Automate
Answered

How to get values of 1 row-Id when manually selected/created from a Excel table (or SharePoint list)?

(0) ShareShare
ReportReport
Posted on by 255

I am trying to make a Flow that does the following:

- If 'Id' 10 is selected create a form(or file) that saves only the values of 'Id' 10. If 'Id' 100 than only the values of 'Id' 100 and so on... The 3th row got 3 columns instead of 4.

- Which triggers can I use for this? 

 

Is it possible to use the Excel file as source and make forms when a 'Id' is selected? Or does the Flow need to know if anything is created or modified? I also made a SharePoint list of the Excel file. If it is possible with the Excel file only than that is what I want to do. See the picture for the details.nieuwewerkwijze.PNG

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    Hi @ahmadbutt 

     

    Yes, it's possible. Let's do it! 🙂

     

    Before we start, the Excel connector doesn't have a "Created or Modified" trigger, so you have to do some extra work to find the information. If you can use a SharePoint list to store your data (not the file) this you,'ll save a lot of work since it does this for you. It's up to you, but since you asked for excel, let's take that path :).

     

    First, the values where you're storing the information should be Excel tables. Make sure that they are otherwise Flow can't really fetch the information. 

     

    After that, you need to run a Power Automation just once to add an id column to the table. Just create a Power Automation as follows:

    Screenshot_2019-12-06_at_09_42_31.jpg

     

    OK, now we have or Excel formatted so that Power Automation can manage it better.

     

    If you're always using these 3 columns then it's easy. Just create a Power Automation that triggers periodically (Schedule trigger) and check, using the ID column created before if the value in the column is 10 or 100. Something like this:

    Screenshot_2019-12-06_at_09_48_32.jpg

     

    Now if you want to update data in the same excel, you need to do the same steps:

    1. Ensure that the locations you want to update data are tables.

    2. Add an ID column

     

    Then you can update the values when you run the Power Automation.

     

    All of this makes sense? It looks complicated but it isn't. If I missed something or if you don't understand some part of it, let me know, and we'll figure this out together :).

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • ahmadbutt Profile Picture
    255 on at

    @manuelstgomes thanks for you help. I don't understand how I can trigger a selected row to let Flow automatically do the other things? What do I need to do here?1e.PNG

  • manuelstgomes Profile Picture
    6,625 on at

    HI @ahmadbutt 

     

    Don't use that trigger. Use this one instead :).

    small-Screenshot 2019-12-06 at 10.15.59.png

     

    Then you can create a recurrence to check the file..

     

    Makes sense?

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

     

  • ahmadbutt Profile Picture
    255 on at

    @manuelstgomes I just followed  the steps of the pictures u send me.. I get a error that I can't use this trigger, if I click on it?a.PNG

     

  • manuelstgomes Profile Picture
    6,625 on at

    hi @ahmadbutt 

     

    Sorry I probably didn't explain correctly. Please remove the "manual trigger a flow" and replace it with the "Schedule"..

     

    I'm sure this will work.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
     
    Cheers
    Manuel
  • ahmadbutt Profile Picture
    255 on at

    @manuelstgomes If I test the flow I don't get a error but the condition is not getting it correct?1e.PNG

    ----

    2e.PNG

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @ahmadbutt ,

     

    You need to use the string() function to format the right parameter into string.

    115.PNG

     

    Best Regards,

  • ahmadbutt Profile Picture
    255 on at

    @v-bacao-msft It works now. Is there a way to save the file as a Form instead of .txt? Or do I need to ask it in a new message?

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @ahmadbutt ,

     

    I'm afraid I don't know which file format Form refers to.

    If you want the data to still be displayed in a table, then you can consider the following method.

    Use HTML table action to format data and create a HTML file.

    116.PNG117.PNG

    replace(body('Create_HTML_table'),'<table>','<table border="1">')

    Take a try.

     

    Best Regards,

  • ahmadbutt Profile Picture
    255 on at

    @v-bacao-msft I can't use 'expression' in Compose, as you showed in your screenshot?

    1e.PNG

    The whole Flow:

    2e.PNG

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 523

#2
Valantis Profile Picture

Valantis 318

#3
David_MA Profile Picture

David_MA 235 Super User 2026 Season 1

Last 30 days Overall leaderboard