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 2 sharepoint ...
Power Apps
Unanswered

Patching 2 sharepoint lists from button in powerapp canvas app

(0) ShareShare
ReportReport
Posted on by 33

I seem to be having an issue with patching to 2 lists,

 

I have created a vacation request app. I have a a few controls that look up the total aloted days a user has in the List called Employee Matrix. When the user enters their requests, there are other controls that display the total of the lookup values minus the requested days. then the requestor is to click a submit button for a review process all of it works fine except the syntax to patch the Employee Matrix seems to error no matter what I try. The second patch is accepted and works fine with no issues. I can't think of why the first patch syntax isn't accepted. Any ideas?

dkent_0-1622068516710.png

 

 

 

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @dkent Change, 'Sick Days': Value(fld_sdr).Text to 'Sick Days': Value(fld_sdr.Text)

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • dkent Profile Picture
    33 on at

    Thank you. I tried your syntax (image below) no difference.

    dkent_0-1622093160127.png

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @dkent What's the Error that u'r getting?

  • dkent Profile Picture
    33 on at

    Seems ambiguous to me but . . . 

     

    dkent_0-1622093833257.png

     

  • dkent Profile Picture
    33 on at

    The odd thing i can past the patch below, but as soon as I change the list name ... i get that red curvy underline. 

     

    It's weird to me, cause it will accept duplicate syntax, but a slight change ...

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @dkent share the new screen please.

  • dkent Profile Picture
    33 on at

    @CNT , not sure what you mean by new screen?

     

    The patches are on the submit button on this screen:

    dkent_0-1622094423831.png

    The submit has syntax to navigate to a simple screen for end user comfort only . . . 

    dkent_1-1622094563838.png

    That screen has no task, it's simply a comfort screen so end user knows something happened

     

    Is that what you were asking for?

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @dkent That's helpful. But what I meant was, the new error you are getting.

    Anyway, the error u shared appears when PA is not able to phrase the code (for whatever reason). I've come across this. Just cut that Patch bit and paste it into something like notepad. Clear all the white spaces in your code (between the previous line and the next line) and paste the code back into it's place. This could solve it. Let me know how you progress. 

  • dkent Profile Picture
    33 on at

    @CNT  I edited from Note pad to:

    Patch('Employee Matrix',Defaults('Employee Matrix'),{Employee:lbl_My_Name.Text,'Sick Days':Value(fld_sdr.Text),'Vacation Days':Value(fld_vdr.Text),'Carryover Days':Value(fld_cdr.Text)}); I still get the rejection.

     

    dkent_0-1622096081094.png

     

    I really hope this isn't annoying you. I appreciate all of your suggestions.

     

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @dkent Is it still the same error?

    If you remove this Patch, does the second Patch work as intended?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard