web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

patch Funktion bei nachschlagefeldern in sharepoint

(0) ShareShare
ReportReport
Posted on by 2
ich habe eine Sharepointliste Buchungen mit ObjektID aus Tabelle Objekte als Nachschlagefeld. Wende ich die Patchfunktion auf ObjektID an (
ObjektID:cmb_Objekt.Selected), so erhalte ich den Fehler:
Es wird ein Record mit anderem Schema erwartet, es fehlt Spalte vom Typ Number.
In meiner Feldliste zu cmb_Objekt ist ID als Zahl vorhanden, in Sharepoint lässt sich ID nicht bearbeiten (Systemgeneriert)
Wie schreibe ich die Patchfunktion richtig?
I have the same question (0)
  • mmbr1606 Profile Picture
    14,453 Super User 2025 Season 2 on at
    patch Funktion bei nachschlagefeldern in sharepoint
    hello
     
     
    please share your whole patch code you are currently using,
     
     
    thanks
  • Kushal_M Profile Picture
    64 on at
    patch Funktion bei nachschlagefeldern in sharepoint
     
    As per my understanding, You have a SharePoint list Buchungen with a lookup column: ObjektID → lookup to table Objekte
     
    The lookup column expects a Record with this schema:
    {
       '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
       Id: Number,
       Value: Text
     
    But your formula:
    ObjektID: cmb_Objekt.Selected
     
    Example Full Patch
     
    Create a record:
     
    Patch(
        Buchungen,
        Defaults(Buchungen),
        {
            ObjektID: {
                Id: cmb_Objekt.Selected.ID,
                Value: cmb_Objekt.Selected.Title
            }
        }
    )
     
    Update a record:
     
    Patch(
        Buchungen,
        ThisItem,
        {
            ObjektID: {
                Id: cmb_Objekt.Selected.ID,
                Value: cmb_Objekt.Selected.Title
            }
        }
    )
     
    if the above patch doesn't work, then please share the patch code which you have written.
     
    🏷️ Please tag me @Kushal_M, if you still have any queries related to the solution or issue persists.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
     Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
  • MJ-06101352-0 Profile Picture
    2 on at
    patch Funktion bei nachschlagefeldern in sharepoint
    super, vielen Dank, genau das war es und hat mir prima geholfen.

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 651 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 385 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 230 Super User 2025 Season 2

Last 30 days Overall leaderboard