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 / Canvas app to havea bu...
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?

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    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

  • kouliscon Profile Picture
    247 on at

    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
    Microsoft Employee on at

    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

    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
    Microsoft Employee on at

    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

     

  • Verified answer
    kouliscon Profile Picture
    247 on at

    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

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard