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 / Updating records on a ...
Power Apps
Answered

Updating records on a Sharepoint list using Patch

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone.

I am developing an app around collecting information on some areas where the internet isn't avaliable and update them in a sharepoint list.

 

I have been able to successfully store the form's information with the function Collect and after that displaying it. I am also capable sending some part of it using this:

 

Saving

If(Connection.Connected; SubmitForm(EditForm1); Collect(arrTemp; {tempNome: DataCardValue27.Text; tempLigacao: DataCardValue28.Text; tempHD: DataCardValue30.Text; tempLeitura: DataCardValue21.Text; tempOcoInf: DataCardValue6.Selected.Value; tempOcoImp: DataCardValue6.Selected.Value; tempObs: DataCardValue22.Text; TempFoto: DataCardValue23.SelectedItems; TempAnexo: DataCardValue24.Attachments}));; Back()

 

Updating

ForAll(arrTemp; Patch(LeiturasND; LookUp(LeiturasND; Title = tempLigacao); {LEITURA: tempLeitura; OBSERVAÇÃO: tempObs}));; Clear(arrTemp)

 

Altough, I'd like to also update other fields, like "Ocorrência Impeditiva", "Ocorrência Informativa", "Foto" and "Anexos", but they are in a diferent format (the three first ones are Choice Columns on my Sharepoint List -single choice- and Anexos is the Attachment).

 

How can I do that properly?

 

Screenshot for reference:

ArthurMatosAP_0-1610029096971.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    You might want to consider an alternate approach to this.  You cannot patch attachments to SharePoint currently, so there will be no way to patch those outside of the form.

    Unfortunately if you are going to connected/disconnected apps, you either have to avoid the form, or at least not have a need for attachments.

    An alternate approach that we use often is to, first not use attachments and instead a document library to hold the documents, then utilize PowerAutomate when connected to send the information to a flow and have the flow sort out the details of getting the file in the right place.

     

    I hope this is helpful for you.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey there, Randy.

     

    Since that function is not currently available, I'll most likely try the approach you mentioned. For that to happen, I'll have to look up for some basics around PowerAutomate, 'cause I'm not really familiar with it. 

     

    Anyway, thanks for the lead! 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Yes, there is plenty of material to view and read for uploading through PowerAutomate.  In general, it will be a good learning experience and a pretty easy flow to create (really only two actions needed in the flow).  If you get more fancy, then it can grow, but for simple...it should be fairly easy to achieve.

    AND, of course, if you ever have any questions, just post on this forum and there are plenty of minds to help.

  • SteveBoling Profile Picture
    31 on at

    Thank you @Anonymous, I was struggling with a lookup patch to SharePoint but this thread helped.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard