cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Re: Unable to Patch Collection (A Record's Blank Date Field) from DatePicker

Still unable to complete this patch. Can't even create a new record in my collection with dates. I have the Formula Level Error management enabled and still no change.

Highlighted
Anonymous
Not applicable

Re: Unable to Patch Collection (A Record's Blank Date Field) from DatePicker

Hello, I am having this same issue. I want to patch a date value to an existing record in a collection. So I have added the Patch job to the OnChange property of a DatePicker in a gallery.  If the date field has an existing value, it works fine, but the same patch function doesn't work if the date value is null. Bug maybe?

 

Patch(
    Collection,
  ThisItem,
    {Date:Input_Date.SelectedDate}

 

Highlighted
Advocate II
Advocate II

Re: Unable to Patch Collection (A Record's Blank Date Field) from DatePicker

Just wanted to add that I'm also experiencing issues here as well, where after Collecting a Blank() value, I'm unable to later Patch a DateTime value to that field.

 

I'll add the Blank() value to a local collection, and then Patch a DateTime value to that collection because I don't have a DateTime yet until the User inputs something. The Blank() value is a placeholder where I can't use "". 

 

ex. 

Button1 - OnSelect: Collect(colDateTime, {Start: Now(), End: Blank()})

Gallery1 - Items: colDateTime

Button2 - OnSelect: Patch(colDateTime, Gallery1.Selected, {End: Now()})

The last portion in Bold Red will give me issues because it does not match the "ObjNull" value in the previous collect. 

Capture.JPG

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,109)