Skip to main content

Notifications

Power Apps - Building 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:
  • iAm_ManCat Profile Picture
    iAm_ManCat 18,112 on at
    Re: How do I create a copy to clipboard button in PowerApps for Teams?

    @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 🙂

  • aec2018 Profile Picture
    aec2018 on at
    Re: How do I create a copy to clipboard button in PowerApps for Teams?

    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'. 

  • Verified answer
    iAm_ManCat Profile Picture
    iAm_ManCat 18,112 on at
    Re: How do I create a copy to clipboard button in PowerApps for Teams?

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

  • GhitaFjorback1 Profile Picture
    GhitaFjorback1 69 on at
    Re: How do I create a copy to clipboard button in PowerApps for Teams?

    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

     




  • Future_Vision Profile Picture
    Future_Vision 634 on at
    Re: How do I create a copy to clipboard button in PowerApps for Teams?

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

  • Kasunpathirana Profile Picture
    Kasunpathirana 27 on at
    Re: How do I create a copy to clipboard button in PowerApps for Teams?

    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

     

     

  • v-jefferni Profile Picture
    v-jefferni on at
    Re: How do I create a copy to clipboard button in PowerApps for Teams?

    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.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard