
Announcements
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
}
)
);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
}
)