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 / Patching a single CDS ...
Power Apps
Unanswered

Patching a single CDS item in a gallery should be simple... but it's not.

(0) ShareShare
ReportReport
Posted on by 309

I need to update a CDS D365 text record each time such item becomes selected via a checkbox in a gallery.  To test my approach, I use a hard coded text value in the following formula, but PowerApps keeps saying the function path contains invalid argument.  I've read other articles on patching, but it remains a mystery why something so simple doesn't work...  Thanks for your help in advance..

 

Patch([@Projects],ThisItem,{msdyn_description:"test"})
 
Annotation 2020-03-28 115841.png
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    You are very close, is msdyn_description a column in your Gallery?:

    Patch([@Projects],ThisItem,{msdyn_description:"test"})

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @testasdfasfsafa 

    If you have a required field in your entity, you will need to patch it as well.  If you have an Autonumber field that is required, you will need to uncheck required.

  • testasdfasfsafa Profile Picture
    309 on at

    Thanks for your help.  No, "msdyn_description" is an internal column name in D365.  Should the column value in curly brackets be the display name of the column or the internal name? Perhaps, that is what is wrong?  The documentation related to those details are non-existent.

  • testasdfasfsafa Profile Picture
    309 on at

    Actually, I just replace the internal name with display name for the column in curly bracket and no difference 😞

  • testasdfasfsafa Profile Picture
    309 on at

    Inexplicably, when I hover over the error, now I get a little more details...  It's complaining about a column in the schema that I'm not trying to update.

     

    Annotation 2020-03-28 160441.png

     

     

     

     
  • testasdfasfsafa Profile Picture
    309 on at

    I can't believe this...  I just replaced CDS source with the same Dynamics 365 and it's working just fine.  I'm so nervous about Microsoft replacing D365 with CDS, there are so many issue that I have encountered... 😞

     

    Annotation 2020-03-28 161054.png

  • eka24 Profile Picture
    20,925 on at

    If it is part of the internal column, its ok.

    On the error message,

    Is the specified column in the error is a required column. Either you add it to the Patch or Make the column not required in the table

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard