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 Apps / How do I create a copy...
Power Apps
Answered

How do I create a copy to clipboard button in PowerApps for Teams?

(0) ShareShare
ReportReport
Posted on by 634

I have a label that contains data from a form. I'd like to add a button that copies that data to a clipboard. I've found some resources to do this but none of them speak specifically to using PA for Teams or using it with a label. Can anyone point me in the right direction?

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Future_Vision ,

     

    Please refer to below thread:

    Solved: Copy to clipboard - Power Platform Community (microsoft.com)

     

    So you could vote for the idea

    Copy to Clipboard - Power Platform Community (microsoft.com)

     

    or follow the video and create a component to achieve that need:

    Power Apps Copy Text To Clipboard - YouTube

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Kasunpathirana Profile Picture
    27 Most Valuable Professional on at

    Hi Future Vision,

     

    As @v-jefferni mentioned Todd video is great workaround to achieve this function.

    https://www.youtube.com/watch?v=URQLR8ndsOE

     

    Thanks,

    Kasun

     

     

  • Future_Vision Profile Picture
    634 on at

    Thanks. I did find that video. My main concern is getting a copy button to work with a label. 

  • GhitaFjorback1 Profile Picture
    69 on at

    I know this post is old, but if someone finds their way here like me, I have posted my solution. I have created a PCF component that will do exactly what @Future_Vision is asking. I am attaching my solution for anyone else to use. The component has a button with a "copy-icon". On select of the button the text inserted in the parameter "CopyToText" will be copied to the users clipboard. In the "CopyToText", you can add a variable, a label.Text etc. I have made a short video as well.
    What I am struggling with is, that I would like to add the option, that after the copying to clipboard has happened, I would like to make a "notify" function, so that the app would notify the user of "The text has been copied to your clipboard or something like that, but till now I have not figured out how to do this in my index.ts file. 😞
    Furthermore, I cannot seem to get my control size to fit my button size... both is no issue, only nice-to-have features, so the control is fully functional as is. Would love someone to help me fix the last two issues though, so please feel free to comment.control in actioncontrol in action

     




  • Verified answer
    iAm_ManCat Profile Picture
    18,251 Most Valuable Professional on at

    You can use the Copy() function directly in Canvas Apps now

  • aec2018 Profile Picture
    Microsoft Employee on at

    Hey @iAm_ManCat , is this a preview feature? When I try calling it in my PowerApp, it says that 'Copy() is an unknown or unsupported feature'. 

  • iAm_ManCat Profile Picture
    18,251 Most Valuable Professional on at

    @aec2018 which version of Power Apps are you using? This was released in the current preview Power Apps version 23034 - Release Notes | Microsoft Learn

    List of current default versions for tenants by region is here: Released versions for Power Apps - Release Notes | Microsoft Learn

     

    You can change this in the settings of your App within a version or two up/down 🙂

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard