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 / Select Item from a list
Power Automate
Answered

Select Item from a list

(0) ShareShare
ReportReport
Posted on by 13

HI Community,

 

I'm making a robot that attaches tax documents to the supplier portal, and basically, I arrive at this part of the image below, where I need to check the item number authorized for billing in the purchase order, then I need to press the "Edit" button corresponding to the item right, and then selecting the check box corresponding to that item.

 

Example: In image below, let's assume that the Item authorized for billing is 0002, so I need to press the Edit button for that item (I colored it red) and then select the checkbox for that item (I colored it blue)

 

elgatomitico_0-1700511405878.png

 

My difficulty is making the robot know that it needs to edit the button referring to the authorized Item, in this case 0002 and not 0001, and then select the checkbox for the right Item, in this case 0002 and not 0001.

 

Does anyone have any ideas?

I have the same question (0)
  • Gidi Profile Picture
    601 on at

    Hi,

    it would help a lot to see the html code of the page to see if the selectors of the checkboxes / Edit button are related to the item. It then could be handled by custom selectors with a variable part. 

    You then could extract the table and loop through the items and set the variables for the custom selectors for checkbox and edit button. 

     

    I hope it’s not described too complicated 🙂

  • elgatomitico Profile Picture
    13 on at

    Hi bro, in html:

     

    <button type="button" onclick="$('#0001').modal('show');returnNumberFloat('value-edit-0', '2016.99')" class="btn btn-warning btn-sm" data-toggle="modal" data-target="#0001">Edit</button>

     

    <button type="button" onclick="$('#0002').modal('show');returnNumberFloat('value-edit-1', '2016.99')" class="btn btn-warning btn-sm" data-toggle="modal" data-target="#0002">Edit</button>

     

    Now I don't understand how to do the association, there is no HTML selector. Can you be more specific, please? 🙂

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You should try to use Press button in web page action, capture the button and then modify it's selector. Try using this as the selector:

    button[data-target="#%Number%"]

     

    You'll need to enable the text editor to set a custom selector and also pass the value as a variable, so set the value you're looking for to %Number%.

     

    If you don't know how to modify selectors in PAD, refer to this article: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

    Also this tutorial: https://www.youtube.com/watch?v=2PcyBa22Jj8&ab_channel=Thomas%22Shaky%22Petersen

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • elgatomitico Profile Picture
    13 on at

    Sucess! Thank you bro!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard