I have a SharePoint list form which have attachments + the below formula to generate PDF:-
Set(
varWorkOrderPDF,
PDF(
'PDF container',
{ExpandContainers: true}
)
);
When submitting the form, i am generating the PDF, but how i can add the generated PDF as an attachment inside the list item? can i do it inside the power apps?
When i added the following formula inside the Items property of the attachment control:-

and i submit the form, i will get an error that the "Field 'id' is required", as follow:-

any advice? Thanks