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 / Getting PARENT details...
Power Automate
Unanswered

Getting PARENT details of a UI element in window

(0) ShareShare
ReportReport
Posted on by 134

Hi Community, 

I am trying to get my UI element parent id element, how can we do that? the parent ID is a variable but child text is firm, I need the parent id to perform dynamic action. Any ideas?

bradt30h_0-1637211971590.png

Thanks for reading and helping 🙂

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You are probably looking at a Parse Text or Get Subtext action. Search for text in your actions and you will see a bunch of options to help split text out. For instance, you could split text by the delimiter “ > ” and always reference the 3rd line of text, but this only works if your “group” is always on the 3rd line. 

  • bradt30h Profile Picture
    134 on at

    Hey Michael, great to see you again.

    Now I am trying to get UI element attribute, am I possible to use parse text? I tried seems not possible. I used "Get details of a UI element in window" action but it will get only the attribute of the UI I selected.

    bradt30h_0-1637216539227.png

    bradt30h_1-1637216587717.png

     

     

  • VJR Profile Picture
    7,635 on at

    Hi @bradt30h 

     

    What you are showing are the details from the selector, is that right?

     

    I don't think we can read the information inside the selectors via any of the available PAD actions.

    But there could be an alternative to what you are looking for.

     

    Could you share some more details like which control is this button, textbox (a screenshot would help), what are going to be the dynamic values, is the dynamic value going to be dependent on something else on the screen, etc

  • geavgous Profile Picture
    Microsoft Employee on at

    Hi @bradt30h , 

     

    Are you looking into getting details from a specific selector or multiple?

     

    Thanks,

    George

  • geavgous Profile Picture
    Microsoft Employee on at

    If I understood correctly, you want to get the ID of the parent, but which action do want to add next?

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I was wrong.  I assumed you had this in text.  I do not see a way to get this into text.  The only text option I see would be to extract the whole page, and then you would need a perfect regex that only existed once, and I don't think that is what you are looking for.  Best of luck!

  • bradt30h Profile Picture
    134 on at

    Hi all, sorry for late reply. I have found a solution using an alternative method given the existing function in PAD couldn't direct extract the UI element value of the parent.

    The website was built using Internet Explorer (IE) and I couldn't inspect the webpage code. The only RPA I can use is UI automation. On the website, I want to post data into the website table's specific cell. The only way to detect the specific cell is UI element - ID. Therefore, I need it to iterate the table with some logic and post it correctly to the cell I want. Initially, I want to grab the cell of the Column header that I want to post my data.  

     

    Long story short, I was able to grab the first item (ie row 0 col 0) ID element and increment by a fixed amount (given the table format is consistent) to get the Column header cell ID - I was able to iterate thereafter.

     

    Nevertheless, appreciate you all for sharing and helping me :). Thank you very much.

     

    PS. I have thought of using the column header to iterate like what we did in excel but can't - the information I obtained by spying element is not robust/sufficient to do that. Also, I can't inspect the whole website (built using IE).

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard