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 / Using variable for Win...
Power Automate
Unanswered

Using variable for Window when specifying UI Element

(0) ShareShare
ReportReport
Posted on by

I would like to create my automation script (desktop application) against a DEV environment window and then deploy to Production box - But I will need to replace the name of the window in all the UI Element  specifiers through out the script.

How could I set the name of the Window as a variable and have the UI elements use that instead?

  • VJR Profile Picture
    7,635 on at

    Hi @dlance_colorlab 

     

    You can make use of Dynamic Selectors by using the "Custom" toggle button where you can pass variables.

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Dynamic-Selector-variable-in-selector-in-Desktop-Automation/td-p/716646

     

    For storing variables across Dev and Prod environments you can have something like an Excel config file or can also make use of Environment variables.

    VJR_0-1646884217805.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard