Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +zgzVEdGvg/Cge9nFaKtjD
Power Apps - Building Power Apps
Answered

Allowing a user to copy an image to the clipboard

Like (1) ShareShare
ReportReport
Posted on 29 May 2024 15:36:08 by 373

Hello

 

I'd like to allow a user to copy an image control's image to the clipboard, or otherwise allow the user to lift that image to use in, e.g. a Word document.

 

The Copy function only supports text, and there's no right-click "Save" option for the image control. Can this be done?

 

thanks

 

Martin

Categories:
  • Martin_W Profile Picture
    373 on 03 Jul 2024 at 10:05:02
    Re: Allowing a user to copy an image to the clipboard

    Beware taking Copilot answers as the truth!

     

    It had given me a static URL to use which, before adjustment for my actual org URL was

     

    https://[ORG URL].dynamics.com/Image/download.aspx?Entity=account&Attribute=crc2a_image&Id= 

     

    Copilot said to add the GUID of the image onto the end of the URL and change the text for the correct org URL.

     

    What it took me ages to discover is that this URL has been copied from a blog article written by someone where the logical name of their table (Entity) is "account" and the logical name of the column was crc2a_image.

     

    I put the name of my table, and the column name in, but it still didn't work.

     

    From sheer curiosity and experimentation, I discovered that the GUID that was actually needed was the RECORD GUID not the Image GUID. This is column which has the same name as the table.

     

    Now it works! 

  • Martin_W Profile Picture
    373 on 27 Jun 2024 at 16:52:09
    Re: Allowing a user to copy an image to the clipboard

    Another possible option is to be able to click on a button and for the full image to launch on another browser tab. I can't seem to get that to work either?

  • Verified answer
    KeithAtherton Profile Picture
    3,646 Most Valuable Professional on 29 May 2024 at 16:00:56
    Re: Allowing a user to copy an image to the clipboard

    Agreed, a Save As option for images would be useful.

     

    I'd recommend suggesting this on Power Apps Ideas:

    https://ideas.powerapps.com/d365community/forum/f1458c72-ae29-ed11-9db2-000d3a8c451e


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

  • Martin_W Profile Picture
    373 on 29 May 2024 at 15:50:16
    Re: Allowing a user to copy an image to the clipboard

    Hello Keith,

     

    The image is currently stored in a Dataverse table. Each record has an image associated with it, and is displayed in the gallery. When the user selects an item in the table, an Image control shows the image ("gallery1.Selected.Image1.Full")

     

    I just need the user to be able to select the image and drop it into their current document (Word, Excel etc). Why the image control doesn't have a simple right click "Save as" option is beyond me.

     

    thanks

     

    Martin

  • KeithAtherton Profile Picture
    3,646 Most Valuable Professional on 29 May 2024 at 15:45:38
    Re: Allowing a user to copy an image to the clipboard

    Hi @Martin_W,

     

    As you say, the Copy() function currently only supports text so unfortunately that isn't an option.

     

    One option could be to save the image to a Dataverse table image column then either:

     

    1. Create a Word template in Power Platform and see if the image can be inserted:
    2. Create a Word template and host in a document storage system like OneDrive and insert the image:

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard
Loading started