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

Community site session details

Session Id : ZPmp2abMcVH6gDpHpr+IAl
Power Apps - Building Power Apps
Answered

Copy to clipboard

Like (1) ShareShare
ReportReport
Posted on 21 Mar 2022 16:27:55 by Microsoft Employee

Hi All,

 

How to accomplish copy to clipboard in PowerApps, do we have any function or script or custom coding available?

  • GREGWOUARE Profile Picture
    39 on 22 Mar 2024 at 20:50:05
    Re: Copy to clipboard

    does not works in power app for teams neither ... 😞

  • BCBuizer Profile Picture
    22,264 Super User 2025 Season 2 on 11 May 2023 at 07:13:59
    Re: Copy to clipboard

    Hi @MichaGue ,

     

    The documentation indeed states this does not work for embedded apps:

    BCBuizer_0-1683789227692.png

    Copy function in Power Apps - Power Platform | Microsoft Learn

  • MichaGue Profile Picture
    235 on 11 May 2023 at 06:42:23
    Re: Copy to clipboard

    Hello,

     

    I wanted to use the new Copy() in "Power Apps for PowerBI.

     

    Running the Power App seperately works fine.

     

    Running it in Power BI results in the error: "Failed copying text to clipboard"

     

    Any ideas? Thanks for your help.

  • Verified answer
    BCBuizer Profile Picture
    22,264 Super User 2025 Season 2 on 06 Apr 2023 at 09:45:00
    Re: Copy to clipboard

    Hi @GhitaFjorback1 ,

     

    This feature is introduced in version 3.23034: https://learn.microsoft.com/en-gb/power-platform/released-versions/powerapps-studio-players/3.23034

     

    Currently that's in preview only: https://learn.microsoft.com/en-gb/power-platform/released-versions/powerapps

     

    Edit: Roll-out should be completed by April 17th though.

  • GhitaFjorback1 Profile Picture
    69 on 06 Apr 2023 at 09:34:34
    Re: Copy to clipboard

    Yes, I also just saw this, this morning. I cannot use the function yet though. I wonder which version Power Apps it will be available for.

  • BCBuizer Profile Picture
    22,264 Super User 2025 Season 2 on 06 Apr 2023 at 06:29:05
    Re: Copy to clipboard

    Hi,

     

    Recently MS introduced this function, albeit with limitations: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-copy.

  • GhitaFjorback1 Profile Picture
    69 on 02 Mar 2023 at 14:44:00
    Re: Copy to clipboard

    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 @Vishal1  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. 

    GhitaFjorback1_0-1677768183934.png

     


    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.
    ezgif.com-video-to-gif.gif

     

     

  • Vishal1 Profile Picture
    Microsoft Employee on 21 Mar 2022 at 16:36:05
    Re: Copy to clipboard

    Thanks for sharing the link, this required MIT license and few extra installations, any idea whether Microsoft will support open source?

  • BCBuizer Profile Picture
    22,264 Super User 2025 Season 2 on 21 Mar 2022 at 16:33:27
    Re: Copy to clipboard

    Hi @Vishal1 ,

     

    This may be an option to explore although I don't have any experience with it: 

     

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

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 21 Mar 2022 at 16:31:47
    Re: Copy to clipboard

    @Vishal1 

    Copying to the clipboard is not supported in PowerApps currently.  The user would have to manually select and then copy (ctrl-c) to get the data needed.

     

    I would suggest voting on any of the following ideas in the Idea forum that are all the same!

    This one has the most votes so far.  It was suggested as an idea on April 30 of 2017!!   Still nothing!

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete