Skip to main content
Community site session details

Community site session details

Session Id : Iyav+v17rFXfdbm+PD0B3P
Power Apps - Building Power Apps
Answered

Patch issues

Like (0) ShareShare
ReportReport
Posted on 4 Dec 2021 22:31:15 by 23

I suspect this error should be staring me in the face but just not seeing it!  I am trying to patch items from shopping cart to SharePoint list.

 

The type of this argument 'Date' does not match the expected type 'Date'.  Type found 'Boolean'.  Need to collect items sold along with who sold them and when, this is what I have.  Both price and qty are self inputs in case prices or qty needs to change.

 

Patch('Shopping Cart Orders', Defaults('Shopping Cart Orders'), {User: User().FullName, Date: IsToday( Today()), Title: Item_title.Text, Price:TextInput1_1.Text, Qty: TextInput1.Text})

 

Really would appreciate some guidance as to where I am going wrong.

 

Thanks

  • Verified answer
    Pstork1 Profile Picture
    67,245 Most Valuable Professional on 04 Dec 2021 at 22:54:35
    Re: Patch issues

    In the Date field.  IsToday(Today())) will always evaluate to true.  I suspect what you want is just Today().

  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on 04 Dec 2021 at 22:41:32
    Re: Patch issues

    Hi @SilvermarD 

     

    'IsToday( Today())' - is a Boolean argument to check if today is today, which will return true.

     

    Just put 'Today()'.

     

    Hope this helps

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete