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 / Update Metadata in Sha...
Power Apps
Answered

Update Metadata in SharePoint Document Library using powerapps and flow

(0) ShareShare
ReportReport
Posted on by 4

I have a canvas app which attaches the attachment to SharePoint document library including metadata. It was working fine until recently when I updated the code to extract filename without extension. When tried monitor to debug the issue, the error I'm seeing is "Invalid data from the network".

Lancy023_0-1697782495778.png

 

I'm able to attach the file to library, but metadata fields are not updating. This is the part of code I'm trying to use:


Set(varAttachementControl,JSON(Source.Image,JSONFormat.IncludeBinaryData));Set(varbase64,Mid(varAttachementControl,Find(",",varAttachementControl)+1,Len(varAttachementControl)-Find(",",varAttachementControl)-1));


Set(varlink,FileUpload.Run(Last(Attachments.Attachments).Name,varbase64).file_name);

Refresh('Project Library');


UpdateIf(' Project Library',Name=Substitute(Last(Attachments.Attachments).Name,"."&Last(Split(varlink,".")).Value,""),{'Project ID ':Project_Id.Text,'Project Name':Project_Name.Text,'Document Name':Last(Attachments.Attachments).Name,'Project Phase':Phase.Selected,'Document Description':'Document Desc'.Text,'Document Type':'Document Type_Value'.Selected});

Can anyone please help me with this.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,393 Most Valuable Professional on at

    Hi @Lancy023 ,

    I think the issue is that your Library has grown over your Delegation Limit and your UpdateIf() formula filter is not Delegable. Instead of sending back the file name, from the Flow, send back the ID of file record just created, then you can Patch the data to the record in a Delegable manner.

    A better option may be as per this blog of mine - send the field values as parameters and use Update File Properties to write the data with the Flow.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Lancy023 Profile Picture
    4 on at

    Thank you, Warren, I wasn't thinking on the delegation limit. I changed my flow to itemID and used Patch function. It worked like a charm. Appreciate your help.

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard