web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The type of this argum...
Power Apps
Unanswered

The type of this argument X does not match the expected Type Attachments. Found type Table

(1) ShareShare
ReportReport
Posted on by

Hello everyone,
I am trying to send a collection to the SharePoint list using For All and Patch , however I have an error when trying to send column with attachment , could you help me, is there any possibility to do this ?

ForAll(
 Colarq,
 Patch(
 'Solicitação de Arquivamento',
 Defaults('Solicitação de Arquivamento'),
 {
 'Laudo/logbook': {Value: Laudooulogbook},
 'Etiqueta de Caixa': Etiqueta,
 Setor: {Value: Setor},
 Ano: Ano,
 CDC: CDC,
 Número: Número,
 Attachments:Anexo
 }
 )
);

printttttt.PNG

Categories:
I have the same question (1)
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Attachments can't be patched using the patch function, you would need to have a separate form that Submits the attachment, then Patch the last item submitted by that with all of your other values.

     

    Submit(AttachmentForm);

    then

    AttachmentForm.OnSuccess:

    Patch(
     datasourcename,
     AttachmentForm.LastSubmit,
     {
     DataExample: DataExample,
     DataExample2: DataExample2
     }
    )

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard