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 / Patch working in Studi...
Power Apps
Unanswered

Patch working in Studio but not Published

(0) ShareShare
ReportReport
Posted on by 39

Hi there, 

 

I have set up a survey using PowerApps where the responses are automatically input to a sharepoint list using the Patch function - this function works when in the app, but once its published the responses no longer go into the sharepoint list

 

The survey requires the students taking it to fill out certain sections multiple times if they have more than one teacher they want to provide feedback for, so there are two points where I have used the Patch function

 

The first Patch is this: (this button is only selected when the student wants to go back to review another teacher, if they're only reviewing one teacher this button will not be selected)

 

Patch(FeedbackResponses, Defaults(FeedbackResponses); {Title: AnsLevel.Selected.Value, Subjects: AnsSubject.Selected.Value, Teachers: AnsTeacher.Selected.Value, Support: DrpSupport.Selected.Value, Organised: DrpOrganised.Selected.Value, Effective: DrpEffective.Selected.Value, Productive: DrpProductive.Selected.Value, Instructions: DrpInstructions.Selected.Value, Feedback: DrpFeedback.Selected.Value, Environment: DrpEnvironment.Selected.Value, Returned: DrpReturned.Selected.Value, Assessments: DrpAssessments.Selected.Value, Work: DrpWork.Selected.Value, Comments: AnsComments.Text});

 

Reset(AnsLevel); Reset(AnsSubject); Reset(AnsTeacher); Reset(DrpSupport); Reset(DrpOrganised); Reset(DrpEffective); Reset(DrpProductive); Reset(DrpInstructions); Reset(DrpFeedback); Reset(DrpEnvironment); Reset(DrpReturned); Reset(DrpAssessments); Reset(DrpWork); Reset(AnsComments);

 

Navigate('Teachers/Subjects')

 

Once they have completed the feedback for their teachers, they have one more question, and then when they click the exit button there is this second patch:

 

Patch(FeedbackResponses, Defaults(FeedbackResponses); {Title: AnsLevel.Selected.Value, Subjects: AnsSubject.Selected.Value, Teachers: AnsTeacher.Selected.Value, Support: DrpSupport.Selected.Value, Organised: DrpOrganised.Selected.Value, Effective: DrpEffective.Selected.Value, Productive: DrpProductive.Selected.Value, Instructions: DrpInstructions.Selected.Value, Feedback: DrpFeedback.Selected.Value, Environment: DrpEnvironment.Selected.Value, Returned: DrpReturned.Selected.Value, Assessments: DrpAssessments.Selected.Value, Work: DrpWork.Selected.Value, Comments: AnsComments.Text, Plans: AnsPlans.Selected.Value});

 

Reset(AnsLevel); Reset(AnsSubject); Reset(AnsTeacher); Reset(DrpSupport); Reset(DrpOrganised); Reset(DrpEffective); Reset(DrpProductive); Reset(DrpInstructions); Reset(DrpFeedback); Reset(DrpEnvironment); Reset(DrpReturned); Reset(DrpAssessments); Reset(DrpWork); Reset(AnsComments); Reset(AnsPlans);

 

Exit(true)

 

Not sure where I'm going wrong as like I said it works fine when in the studio, so any help would be much appreciated!

Categories:
I have the same question (0)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard