Error reported in Patch statement

  • Error reported in Patch statement

    Posted by DSC Communities on July 23, 2021 at 8:58 am
    • Brian Scott

      Member

      July 23, 2021 at 8:58 AM

      PowerApps is reporting an error in a Patch satement that I can’t see. I am testing a control in a form to see if it is blank. If It is I am Patching a value into a field in the Sharepoint data. My code is:
      Patch(MobileDevices, frm_DeviceEdit_1.LastSubmit, {Employee:BlankPerson})
      where “MobileDevices is the list, and frm_DeviceEdit_1 is the form and Employee is the field I need to patch. What am I missing?

      ——————————
      Brian Scott
      Chief Creative Officer
      Concord NC
      ——————————

    • Warren Belz

      Member

      July 23, 2021 at 7:52 PM

      Hi Brian,
      Try this

      Patch(
         MobileDevices, 
         {ID:frm_DeviceEdit_1.LastSubmit.ID},
         {Employee:BlankPerson}
      )?

      Also consider instead putting on the OnSuccess of the form

      Patch(
         MobileDevices, 
         {ID:Self.LastSubmit.ID}, 
         {Employee:BlankPerson}
      )

      ——————————
      Warren Belz
      Queensland Australia
      ——————————
      ——————————————-

    DSC Communities replied 4 years, 1 month ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Error reported in Patch statement’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!