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 / Submit form function
Power Apps
Answered

Submit form function

(0) ShareShare
ReportReport
Posted on by 65

Attach is a screenshot of my submit button to my Sharepoint. But I keep getting errors whenever a new entry is submitted

Please can someone help me with the right submit function into my Sharepoint data Datasource?

 

This what I did

ClearCollect(PatchedSP,Patch('Equipments Log',Defaults('Equipments Log'),EquipmentlogFORM.Updates))

 

Screen Shot 2021-04-02 at 9.04.39 AM.png

 

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    Using defaults() as the second parameter means you are creating a new record, but using .Updates means you are patching an existing record.  If you are creating a new record you need to reference the values in the form or just submit the new form instead of patch.

  • Verified answer
    Rivius Profile Picture
    269 on at

    If you're straight up just submitting a form, all you need is SubmitForm(FormName) without anything else.  The record will be created with the datasource of the form.  This also works if you're modifying an entry with the form.  Forms are pretty powerful.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard