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 / Help with code not upd...
Power Apps
Answered

Help with code not updating to Sharepoint

(0) ShareShare
ReportReport
Posted on by 431

hi, please can you help me identify why my Patch code is not updating my Sharepoint List? Two screen snips below.

Code1.PNGCode2.PNG

 

Categories:
I have the same question (0)
  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @JerryH ,

     

    I see syntax errors in your code, try to change the code as below:

     

    If(isAdmin,Patch(HelpDesk,Lookup(helpDesk,ID=SelectedTicket.ID),{
    priority:{
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id:1, // This need not be the ID of the dropdown selected value
     Value: createTicketScreenPriorityDropdown.SelectedText.Value 
    },
    Category:{
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id:1, // This need not be the ID of the dropdown selected value
     Value: createTicketScreenCategoryDropdown.SelectedText.Value 
    },
    TaskStatus:{
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id:1, // This need not be the ID of the dropdown selected value
     Value: createTicketScreenStatusDropdown.SelectedText.Value 
    },
    PercentComplete:EditTicketScreenCompletedSlider.Value/100,
    AssignedTo:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|" & AssignedToUserName.Email,
     Department:"",
     DisplayName:AssignedToUserName.FullName,
     Email:AssignedToUserName.Email,
     JobTitle:"",
     Picture:""
     },Description:EditTicketScreenDescription.Text}))

     

    The above one is for the first Path what I have done is I am closing the choice and people fields accordingly.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • JerryH Profile Picture
    431 on at

    Hi Krishna, 

    Please can you see the error below, thank you so much.

     

    tEST.png

  • JerryH Profile Picture
    431 on at

    Thanks Krishna!

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard