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 / Save the value of copi...
Power Automate
Answered

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,557 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,666 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard