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 / Variables in Base CSS ...
Power Automate
Answered

Variables in Base CSS Selectors

(0) ShareShare
ReportReport
Posted on by 8

Hello all, I've been searching for an answer here and am not finding it. I'm hoping that someone on here can help.

 

I'm trying to use a variable in a Extract Data from Web Page > Live Web Helper > Advanced Settings > Extract Table > Base CSS Selector field. Here's a picture of what I'm trying to do:

 

timkulp_0-1616640466453.png

Notice, the %var% in the start of Base CSS Selector. The reason I'm doing this is that the id for the table that I want to use changes based on data that occurs in the previous parts of the Ui Flow. When I call the id by name, such as: #id1 + div > table..., it works fine. I'm assuming variables are not able to be used here but am hoping that I'm wrong.

 

Any help would be greatly appreciated! @adijain I've seen you answer similar questions here so I'm hopeful you might know how to do what I'm trying to do.

 

Thank you all!

Tim

  • fraenK Profile Picture
    2,125 on at

    What's the output of %var%?

    Does a web selector work with this variable? 

  • timkulp Profile Picture
    8 on at

    The output is the id name. In this case “#id1”. It is a text variable. 

  • Verified answer
    fraenK Profile Picture
    2,125 on at

    This seems to be a bug!  The variable is not interpreted as a variable but as normal text.

    "Get details of an element" works with variables within the selector (stored as appmask)

  • timkulp Profile Picture
    8 on at

    Thanks @fraenK! I appreciate the feedback. I'll explore what you're saying here. 

  • timkulp Profile Picture
    8 on at

    Thanks again @fraenK! What I ended up doing is using the Get Details of an Element like you suggested and then parsed the data into a custom datatable. That worked.

  • marcpbauer Profile Picture
    2 on at

    Is this still a bug or how it is intended to work? I would really like to use a var inside the base css selector rather than use Get Details of an Element as the web extractor seems a lot faster than going through each detail in a loop.

  • Heather Profile Picture
    19 on at

    Try extracting the ids into a table or list, then use that to create a selector that grabs the correct table.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard