Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Canvas app to havea button to update an existing item at sharepoint list

(0) ShareShare
ReportReport
Posted on by 247

hello all

 

I made an empty canvas app and I added an edit form and a button and i would like when I complete some fields and press the button I would like to update an existing item at my SharePoint list.

 

if I use SubmitForm(formname) that will create another item at the SharePoint list which I don't want that.

 

any ideas?

  • Verified answer
    kouliscon Profile Picture
    247 on at
    Re: Canvas app to havea button to update an existing item at sharepoint list

    hello,

     

    I made my app based on this video: Power Apps: Open App with SharePoint List Formatting  and specifically:

    - APP section at the left at ITEM: if(!IsBlank(Param("ID")),Set(varID, Param("ID"));Navigate(Screen,ScreenTransition.Fade))

    - then at each of the two forms:

    - formView

    - formEdit

    at the ITEMS I added: FormView: If(!IsBlank(Param("ID")),LookUp('Summer Associate',ID = varID))

     

    and lastly at the button: SubmitForm(FormEdit); Navigate(Submitted)

     

    and that seems to did the trick.

     

    thanks

  • v-siky-msft Profile Picture
    on at
    Re: Canvas app to havea button to update an existing item at sharepoint list

    Hi @kouliscon ,

     

    It seems you are configure a Deep Link feature to your app.

    Was the ID parameter passed successfully?

    Please try to add a Label to show the Param("ID") or VarID to check if they are blank or not.

    Sik

     

  • kouliscon Profile Picture
    247 on at
    Re: Canvas app to havea button to update an existing item at sharepoint list

    thank you @v-siky-msft but that doesn't seem to work.

     

    I do have at the button on OnSelect: EditForm(FormNew);Navigate(Submitted)

    and at the ITEM of the FormNew: If(!IsBlank(Param("ID")),LookUp('SA - Test',ID = varID))

     

    but when I press the button no values are registered...

     

    any other ideas?

  • v-siky-msft Profile Picture
    on at
    Re: Canvas app to havea button to update an existing item at sharepoint list

    Hi @kouliscon ,

     

    The Item property and the LookUp formula look great.

    Please make sure the Form is in Edit Mode, you can use EditForm(FormName) formula to switch mode, or select the Edit in Default mode property directly.

    Snipaste_2020-07-16_13-49-00.png

    Hope this helps.

    Sik

  • kouliscon Profile Picture
    247 on at
    Re: Canvas app to havea button to update an existing item at sharepoint list

    thank you @v-siky-msft 

     

    I followed another article which I read online of how to "Opening PowerApp using SharePoint Column Formatting"

     

    so i have a variable with the ID of the item that i want to update. the variable is "VarID"

     

    how can i use the variable to update that id?

     

    at the ITEM of the form i use: LookUp('SA - Test',ID = varID) but it didnt work.

     

    any ideas?

     

     

  • v-siky-msft Profile Picture
    on at
    Re: Canvas app to havea button to update an existing item at sharepoint list

    Hi @kouliscon ,

     

    You have to use a button with EditForm(FormName) code in OnSelect property to change Form into Edit Mode, and then set the specific record you want to edit into Items property of Form, then the form will show the data of specific record, and the modification will be submitted to that record.

    For example, put First('SP list') into Form.Items property to Edit the first record.

    Hope this helps.

    Sik

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,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard