Skip to main content

Notifications

Power Automate - Power Automate Desktop
Answered

Can I set a variable on an element from UI

(0) ShareShare
ReportReport
Posted on by 73
Hey there,
 
I tried to set up a variable for an element from UI, so I can execute the other steps on variable. Do you know how to do that? 

Want to rename the file I selected. I know I can dump the source of that file into that, But in real life, I have to click UI to capture that file. (see below steps I created)
 
Do you know how? Thanks a lot!


I just  added attribute Id is equal to the new variable name I will use set variable. but that doesn't work. it said it could not rename the file, since it didn't figure out the file based on the variable i set. 
Categories:
  • Verified answer
    eetuRobo Profile Picture
    eetuRobo 2,574 on at
    Can I set a variable on an element from UI
    The UI element selector only selects UI elements. You can’t set variable from that. It’s a blueprint for the PAD to find the correct element. When you use variable in the Id attributes value then PAD is trying to find element that has that id of the variable you gave it. And since your %NewVar% is not yet set to anything its trying to find an element with empty Id.

    If you want to extract the Id of a certain element into a variable use “Get details of the UI element in window” -action. Then set the attribute to Id . You need to write the Id in the Attribute name -field since its not one of the four default attributes in the drop down menu.




    For example I extracted Id from Microsoft Stores Adobe reader


    Result:

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

End of Year Newsletter…

End of Year Community Newsletter…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #11 New Opportunities…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,609

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,420

Leaderboard