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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get attributes of a de...
Power Automate
Suggested Answer

Get attributes of a desktop UI element

(0) ShareShare
ReportReport
Posted on by
I am playing around with Power Automate Desktop. I'm trying to write an automation that will change the default audio output device depending upon the current device. For example, if the current device is the headset, I want to switch to the speaker and vice vera.
I recorded pressing <Windows>+<CTRL>+V to open the Quick Settings for the sound output
What I am having a problem with is getting the "Selected" value from the UI element which I should be able to use to tell what the currently active device is.
It looks like there are only a limited number of attributes available from the "Get details of the UI element in window". Is there any way for me to get the attribute that I need?
 
Thank you
 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,397 Super User 2026 Season 1 on at
    There doesn't seem to be "Selected" attribute in the "Get details of the UI element in window" as you pointed out. Here is a list of what attributes you can check with it (more than just the 4 that action gives by default): https://learn.microsoft.com/en-us/power-automate/desktop-flows/how-to/extract-attributes-window-elements

    You can use "Get selected checkboxes in window" -action. I tested and that is able to see if the audio device is selected or not. Use "Get state of checkbox" operation.



    So the flow would look something like this:

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
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard