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 / How to collect or patc...
Power Apps
Answered

How to collect or patch a date format and a combobox?

(0) ShareShare
ReportReport
Posted on by 504

Hey guys, I am trying to collect a record with a blank date and eventually patch it with the selected date. but I am getting an error with objnull

Categories:
I have the same question (0)
  • Fredrik_A Profile Picture
    3,639 Super User 2026 Season 1 on at

    Try the following:

     

    1. Set the data type for date in Sharepoint as single line text
    2. Add Datepicker in Date datacard in PowerApps. So now, you supposed to have 2 fields in the same datacard; datepicker and textfield.
    3. Textfield:Default = Blank()
    4. Date DataCard: Update = If(radio. Selected. Value ="Yes", DatePicker. SelectedDate, Textfield.Text)
    5. Date DataCard:Visible = Radio. Selected. Value = "yes"

  • nagestiada Profile Picture
    504 on at

    Hello @StretchFredrik, I am not using any sharepoint list, just a local collection. or is it possible to add a column if you are patching?

  • Verified answer
    theapurva Profile Picture
    970 Super User 2024 Season 1 on at

    Hello @nagestiada ,
    you can refer the below formula:

     

    Collect(EmptyDates,Filter(YourDataSource, YourDateColumn=Blank()));
    ForAll(EmptyDates, Patch(YourDataSource,ThisRecord,{YourDateColumn:Date(2020,12,25) + Time(9,30,0)}))

     

    If you use Datepicker you can directly use as below

    Collect(EmptyDates,Filter(YourDataSource, YourDateColumn=Blank()));
    ForAll(EmptyDates, Patch(YourDataSource,ThisRecord,{YourDateColumn:YourDatePicker.selectedDate}))

     I referred this link by @mdevaney's article for Date time column Patching.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard