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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Save the value of copi...
Power Automate
Unanswered

Save the value of copied text into a variable and display it into a display message

(2) ShareShare
ReportReport
Posted on by 28
Hi,
I am working on QR Code scanning project using Power Automate Desktop.
As an output, I am getting a text that I need to store in the variable.
I am clicking on copy to clipboard.
So I need to save the value to a variable and display it as a message.
This is the output of the QR 
After clicking on Copy to Clipboard I need to save that value in a variable.
How should I do the same?
Thanks in advance!!
I have the same question (0)
  • Suggested answer
    AnthonyAmador Profile Picture
    2,553 Moderator on at
    Hi, 
     
    You could use the action "Get details of the UI element in window" and select that text part before close it, the text will be automatically saved in the variable AttributeValue.
     


    Hope this helps. 
    Anthony. 

    If my reply answers your question, please like and mark it as verified. This helps me stay motivated to assist others and makes it easier for users with similar questions to find the answer. Thanks!
    Feel free to connect with me on LinkedIn!
     
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
    Hey Hi,
     
    After clicking on the Copy to Clipboard action,you can try the below solution.Please find the solution.
     
     
    Code:
    Clipboard.GetText Text=> ClipboardText
    SET Text TO ClipboardText
    Display.ShowMessageDialog.ShowMessage Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed14
    
     
     
    (Note:- if you got your solution you can mark as solution and gives kudos)

    Thanks & Regards
    Vishnu Reddy
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard