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 Apps / Copy functionality for...
Power Apps
Answered

Copy functionality for the gallery items

(0) ShareShare
ReportReport
Posted on by 237

 

Hi community team,

  

 I created canvas app.In canvas app screen added blank gallery,in that gallery added edit and delete and copy buttons.

My requirement is how can implement copy functionality in gallery items

If any idea of this requirement  please help.....!!

 

Thanks in advance.....!!!

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Powerappsuser11,

    Do you want to copy an item in Gallery?

     

    If so, you just need to add an icon within the Gallery and set the OnSelect as:

    Set(varcopy,ThisItem)

    Note that the Set() function just generate an item as a variable, which depends on how you want to refer to this copied item.

     

    If you want to copy all the items from the Gallery, you just need to add a copy button and apply to the following formula:

    ClearCollect(varCopyItems,Gallery1.AllItems)
  • Powerappsuser11 Profile Picture
    237 on at

     

    Hi @v-qiaqi-msft 

     

    I implemented copy functionality .how it works if I select it is copied how to paste the copied data into another row. 

    Also have save icon for selected row to be save. how can achieve this requirements.

    Please help.

    find below image.

    Powerappsuser11_0-1690872564599.png

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Powerappsuser11,

    I don't get you...

    What do you mean by:

    1). how it works if I select it is copied?

    2). how to paste the copied data into another row? (add the copied row to your data source?)

     

    If you want to copy one row to your data source, please set the copy icon as:

    Patch(Data,Defaults(Data),{Field1:ThisItem.Field1,Field2:ThisItem.Field2,...})

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard