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 / Save Data to SharePoin...
Power Apps
Unanswered

Save Data to SharePoint list

(0) ShareShare
ReportReport
Posted on by

Hi, I need your Help!

 

I want to create a canteen ordering app.

 

I try to save the users menu choice into an SharePoint list.

 

So the app first of all has to check if the name is in the list or not,

if yes write the menu choice (variable) into the users row at the day which is defined in the “weekday” variable,

if not create a new row with the given and surname and save the menu choice into the column which equals weekday. 

The app should check this OnSelect of a button.

 

 

First try:

If(
LookUp(CL_EMPL,Title=Surname, Title = Surname And LookUp(CL_EMPL,Forename=GivenName,Forename)=GivenName,
Patch(CL_EMPL, First(Filter(CL_EMPL, Title = Surname And Forename = GivenName)), {"Weekday": Button2.Text}),
Patch( CL_EMPL, Defaults( CL_EMPL ), { Title: Surname, ForeName = GivenName, {"Weekday": Button2.Text}))

 

There is an error in the curly braces. It seems that that PowerApps doesn't recognise the column name / header.

 

If you can provide some help I would be very thankful. 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Frederike198  there are definitely some syntax issues with your formula.

    However, I'm not clear on your app or datasource, so I'll ask - where are Surname and GivenName coming from? Are these variables you've set?  

    From your data source - you are referring to Title, Surname and GivenName.  What is the Title field containing? Is that the Surname?  And again, leading back to the last question...is Surname a variable in your app?

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard