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 / Help Saving Data in sh...
Power Apps
Unanswered

Help Saving Data in sharepoint/power apps

(0) ShareShare
ReportReport
Posted on by 7

Hello, I'm brand new to SharePoint/power apps,  I'm trying to save some data into a table i created. see below my form

Sawyer29_0-1674054268936.png

 

when saving I have tried "SubmitForm(withmyformnamehere)"

comes up saying "network error when using patch function" 

I have tried to do this using a patch (see my below code)

 

Sawyer29_0-1674054487054.png

 

 

really struggling with this !  any help would be much appreciated !

Thank you

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

    Hi @Sawyer29 

     

    Your formula in the Action Type section should change this to:
    'Action Type'=actiontypeddl.Selected.Value

     

    Best Regards,

    Levi

  • Sawyer29 Profile Picture
    7 on at

    Hi Levi , Thank you for your reply !  im getting the below now;

    Sawyer29_0-1674131498681.png

    Here is my code ;
    Patch(Exceptions,Defaults(Exceptions),{'Action Type':actiontypeddl.Selected.Value,'Customer Name':customernametxt.Text,'Address Line 1':addressline1txt.Text,'Address Line 2':addressline2txt.Text,'Address Line 3':addressline3txt.Text,Postcode:postcodetxt.Text,BAN:bantxt.Text,'Customer Contact/Email':contacttxt.Text,Comments:commentstxt.Text})

     

    not sure if I'm completely missing something !!

    Thank you again !

     

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @Sawyer29 

     

    Could you please tell me:

    What type of column is Action Type?
    If it is a choice column, is it multiple choice or single choice?

     

    Best Regards,

    Levi

  • Sawyer29 Profile Picture
    7 on at

    Hi @v-liwei-msft !

     

    My action type is a choice column, eventually going to have about 10 options from it,  is that the right column type to use or is there something better?

    Thank you again !

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, i have the same issue but i have checked which u should also do. The monitor location: 

    DvdH_0-1674210660409.png


    This might help u out more. If u also have a Bad gateway issue then this is not due to your code most likely. But due to your connection. My code also is fine(test this by writing a basic patch function to add a new row and u'd get the same error). Sharing the monitor errorlog/succes log might help people be able to help you.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard