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 / SharePointIntegration ...
Power Apps
Answered

SharePointIntegration does not save data in sharepoint list

(0) ShareShare
ReportReport
Posted on by 48

Hi everyone! 🙂

I'm building a form with Sharepoint Integration. This form is used to register for courses.

 

I don't understand why when I submit the form the data is not saved in the database

These are some formulas for better comprehension:

 

First of all I calculated how many places of the course have already been booked:

DataCardValue_Booked - Defaults:

Count(Filter('Electives Reservations'; ComboBox_Courses.Selected.Value = Elective.Value).ID)

 

Elective Reservation = list name

ComboBox_Courses = combobox in the form where I chose the course I want

 

then I calculate how many places are left compared to the maximum number of registrations

Label - Text

If(IsBlank(DataCardValue_PlacesAvailable);10;DataCardValue_PlacesAvailable-DataCardValue_Booked)

 

through the email and the ID of the course I verify that I have not previously registered for the course. If the number of my enrollments in the course is less than 1, I set the "places" variable which contains the number of places still available, and also submit the form. Otherwise, I reset it

 

SharePointIntegration - OnSave

If(Count(Filter('Electives Reservations'; email = DataCardValue_Email.Text; Elective.Value = ComboBox_Corsi.Selected.Value).ID) < 1;
Set(postili;(Posti.Text));;SubmitForm(SharePointForm1);;ResetForm(SharePointForm1))

 

If the amount of spots still available is greater than zero, navigate to the Feedback_Successfull screen; otherwise navigate to Feedback

SharePointForm - OnSuccess

If(Value(postili)>0;
Navigate(Feedback_Successfull;ScreenTransition.None);;ResetForm(SharePointForm1);
Navigate(Feedback;ScreenTransition.None);;ResetForm(SharePointForm1))

 

Feedback_Successfull and Feedback are two screens that contain a button

 

Button Feedback_Successfull:

ResetForm(SharePointForm1);; RequestHide();;Refresh('My Reservations')

 

Button Feedback

ResetForm(SharePointForm1);; RequestHide();;Refresh('My Reservations')

 

Can anyone tell me why when the data is not saved on the SharePoint list?

Probably something is wrong at OnSuccess, but I don't understand what is it.

Thank you in advance 🙂

Categories:
I have the same question (0)
  • Verified answer
    FedeCandotto Profile Picture
    48 on at

    I fixed it on my own, and all this information was unnecessary.

     

    The from didn't save the data to the database because I unintentionally set the REQUIRED property of a hidden DataCard to =true.

    As in this case, It's impossible to save a form if a required field has not been filled in.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard