Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Patch attachments to sharepoint list from edit form of another sharepoint list

Posted on by 130

Hi all, 

I have a edit form in which I show SP list1 data and I want to patch SP list2  with data from SP list1 edit form.

I'm able to patch almost all columns in SP list2 but couldn't patch attachments.

I tried SPListEditform.updates in patch function but it didn't worked.

My code:
Patch(Splist2,
defaults(Splist2),
{column1:SPListEditformDataCard.text},
SPListEditform.updates
)

I want the same attachments in SP list2 which is in SP list2.

Any help would be highly appreciated.

Thanks,
R

  • r_voyager Profile Picture
    r_voyager 130 on at
    Re: Patch attachments to sharepoint list from edit form of another sharepoint list

    Hi @WarrenBelz , I tried what was explained in that video of Shane but when I open the attachments patched to SP , they show inaccurate data eg. images corrupted, excel file showing url and not tables etc..

    But I did try Reza Dorrani's Video ,it helped me achieve what I was looking for, some validations applied and it worked for now. 

    On my part data source is SP list 1 for gallery and SP list 2 for form.

    In gallery items , displayed attachments thumbnail(Reza's video) , which allows to download attachments from form while selecting gallery items.

  • WarrenBelz Profile Picture
    WarrenBelz 143,487 on at
    Re: Patch attachments to sharepoint list from edit form of another sharepoint list

    Hi @r_voyager ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    WarrenBelz 143,487 on at
    Re: Patch attachments to sharepoint list from edit form of another sharepoint list

    Hi @r_voyager ,

    Attachments can only be saved directly from Power Apps with either SubmitForm or Patch(FormName.Updates) when the Form Item is from the list you are adding the attachment to. The only way to add it to another list would be to go down the rather complex patch of sending it off to Power Automate and attaching it. This video from Shane Young @Shanescows may assist if you want to venture there.

     

    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.

    Visit my blog Practical Power Apps

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard