cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jean_9681
Helper III
Helper III

Patch/update SPO List with Multi Date Selection

I am using the PowerApps OOTB  Calendar Screen components to select multiple dates/days and would like to store each selection as a separate record in SPO List
Please help me with the patch function.

Below are some screenshots.


Jean_9681_0-1654143502261.png

 

 

Formulas Used:

 

  1. Title Label in MonthDayGallery1:  OnSelect to:

Jean_9681_1-1654143502271.png

 

 

 

If(IsBlank(LookUp(colDates2,Value=DateAdd(_firstDayInView, ThisItem.Value, Days))),Collect(colDates2,DateAdd(_firstDayInView, ThisItem.Value, Days)))

 

  1. Created a new Gallery and set the items to: colDates2
    Added a label to display the selected dates: Text : ThisItem.value

           Cancel X icon OnSelect: Remove(colDates2,ThisItem)
           Trash Icon OnSelectClear(colDates2)

 

 2.  Here is what I need some help with, I am not sure what value do I use to get the dates patched to back the SPO List date column

Added a Submit button -
OnSelect Property:

 

ForAll(
colDates2,
Patch(
SPODataSource,
Defaults(SPODataSource),
{
Title: "Title",
Dates: ??????
}
)
)

 

-----------

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
EddieE
Super User
Super User

@Jean_9681 

Try

ForAll(
   colDates2,
   Patch(
      SPODataSource,
      Defaults(SPODataSource),
      {
         Title: "Title",
         Dates: ThisRecord.Value
      }
   )
)

 

View solution in original post

1 REPLY 1
EddieE
Super User
Super User

@Jean_9681 

Try

ForAll(
   colDates2,
   Patch(
      SPODataSource,
      Defaults(SPODataSource),
      {
         Title: "Title",
         Dates: ThisRecord.Value
      }
   )
)

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,607)