Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Copy existing items and submit as a new item in power apps gallery and forms

(1) ShareShare
ReportReport
Posted on by

Hello all Power Apps experts,

 

Here I have a new problem.

My homepage in Power Apps is a gallery data table with items information and there's a bottom called copy this item.

Yiqian_0-1719810562317.png

 

Yiqian_2-1719810602515.png

 

With clicking this bottom, I hope the user could skip to a new screen with the item he chose. In this new screen, he can change any information he wants to change and by clicking the submit bottom, he will skip to successful screen and a new item will be created in the gallery data table.

 

Yiqian_3-1719810759875.png

 

So for the "copy this item" bottom in p2, I just use the function navigate in on select session.
For the "submit" bottom in p3, I use the function in on select

Patch(Sharepoint data source, Defaults(Sharepoint data source),FormCopy.Updates);
SubmitForm(FormCopy);
Navigate(ScreenSuccess));
 
However, it could not jump to the success screen and could not submit at all.
 
Anything wrong with my function or is there any advice?
 
Thanks!
 
Regards,
Yiqian

 

 

  • YC-24070300-0 Profile Picture
    on at
    Re: Copy existing items and submit as a new item in power apps gallery and forms

    Hi Bof,

     

    Thanks for your advice. I have amended my function and it works quite well now. Amazing!

    For my question, I also found the problem is that I also used the if function in "submit" bottom's on select part to remind the user fill in all fields but the last bracket is in the wrong place. 

     

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Copy existing items and submit as a new item in power apps gallery and forms

    Hi @Yiqian ,

     

    The formula looks fine , is there any error message?

    In addition, if you just want to copy an item , there is no need to submit the form , you could try:

     

    Patch(Sharepoint data source, Defaults(Sharepoint data source),FormCopy.Updates);
    ResetForm(FormCopy);
    Navigate(ScreenSuccess);

     

     

    Best Regards,
    Bof

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 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,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard