Hello
I have an App where the users have to upload one or more files in a Sharepoint Library after checking and commented it.
All info related to the file shall be patched on this library after uploading the files. The info shall be the same for all files uploaded at the same time.
I'm using the following formula to upload and path the info of the uploaded doc:
ForAll(
Attacher.Attachments;
UploadSharepointFlujo2.Run(
{
file: {
contentBytes: Value;
name: Name
}
}
)
);;
Set(
LastItem;
First(
Sort(
'001 - Flujo de aprobación';
ID;
SortOrder.Descending
)
)
);;
Patch(
'001 - Flujo de aprobación';
LookUp(
'001 - Flujo de aprobación';
ID = LastItem.ID
);
{
Revisión: {Value: Label1_130};
'Situación del flujo': "CONTESTADA"
}
)
So far, so good. It works. However I have some questions which I'd appreciate if someone can help me.
1 - I have an additional column on this library that must be patched as well but this column is a lookup from a SharePoint list. I tried some tutorials posted here but it didn't work.
2 - I'm not sure if using the formula above, in case some user upload more than one file, it will patch all the lines corresponding to the files since it uses the last ID to patch.
Thanks in advance.
Rgds,