cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akbarmahfuzalam
Post Prodigy
Post Prodigy

Patch function to update existing record with POP Up Window to edit

Hello PowerApps Team,

 

I am trying to edit the existing record from the gallery and patching it back to SP List but its not working for me neither I am getting any error to rectify.

 

Notify(
"Submitting your records...",
NotificationType.Information
);
Patch(
ProcessKnowledgeTest,
Defaults(ProcessKnowledgeTest),
{
OpportunityEarned: Value(InputEarnedOppty.Text)

}
);
Refresh(ProcessKnowledgeTest);
UpdateContext({boolPopUpOwnership: false})

akbarmahfuzalam_0-1600173043642.png

 

4 REPLIES 4
BrianS
Super User
Super User

Could you have a field in the SP list that is required that are not including in your Patch?

@BrianS 

 

I don't have required fields in the SP List.  I want to edit the record which is laying in the OpportunityEarned with the new record which the user will input.

 

akbarmahfuzalam_0-1600174850801.png

 

I tried your code substituting a data source here and it worked correctly. I would try copying those few controls to a new page and see if they work for you. If they do, there must be something else on the page keeping the code from functioning.

@BrianS ,

 

Any Luck on the above issue.

 

FYI.

 

I used the below solution for my pop up window to edit the gallery. Here I have used Text wherein in the below link he has used dropdown

 

Adding a Pop-Up Window with Dropdowns in Microsoft PowerApps 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,189)