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 based on t...
Power Apps
Answered

Submit form based on two sharepoint lists: Network error when using patch function

(0) ShareShare
ReportReport
Posted on by

I have a form EditForm_Resources with it's datasource being a sharepoint list called CVM_Assignments.

 

One of the combo boxes from another sharepoint list called CVM_Effort which I'm using to cascade a Role combobox to the Effort combo box. The functionality works as expected, with the form being pre-populated from a variable set up in a different screen.

 

My save button is throwing me the Network error. On Select:

 

SubmitForm(EditForm_Resources);
ClearCollect(
ProjectCollection_resources,
CVM_Assignments
);

Refresh(CVM_Assignments);

 

It must be due to the fact the ID field from the SP list isn't being generated, which wasn't an issue when the form was based on just one source. When I added the cascading combo box is when this stopped working. How do I resolve this?

 

bpansy4_0-1716326919556.png

 

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @bpansy4 ,

    What is the Update of the Data Card and the Items and DefaultSelectedItems of the Combo Box (in Text please)

  • bpansy4 Profile Picture
    on at

    Hi Warren - for the Effort Combo Box:

     

    Card - Update: cboEffort.selected

     

    Combobox (cboEffort) Items: Distinct(Filter(CVM_Effort, Role.Value = cboRole.Selected.Value), Effort)

    Combobox (cboEffort) DefaultSelectedItems: Parent.Default

     

  • Verified answer
    bpansy4 Profile Picture
    on at

    I went with the Patch approach to have it work properly. 

     

    Patch(
     CVM_Assignments,
     Defaults(CVM_Assignments),
     {
     Vendor: varVendor.Text,
     Role: cboRole.Selected,
     Resource_Type: cboResourceType.Selected,
     Resource: cboResource.Selected,
     Effort: cboEffort
     }
    
    );

     

    but now the Effort field is being transferred over to the table.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard