Hi,
I'm building an app where user can add deviations to a sharepointlist, I'm using an editform to allow the users to add an attachment to the item they create.
However, the app is supposed to support offline capabilities, and here is my problem:
If the connection is lost during the creation of a new deviation I want to save all the data from the from, this is fine for most inputs as it collects the text/selected values from each of the datacards and saves them to a collection.
For other purposes in the app I want to save the attachments in a separate collection with the following columns:
| LocalID | Name | Image |
My though was to use For All as followed:
ForAll(AttachmentDataCardValue.Attachments, Collect(newCollection, { LocalID: newID, Name: Name, Image: Value }));
This gives the error 'Name isn't valid. This identifier isn't recognized'.
When I tested It worked fine for the name only when using this formula:
ForAll(AttachmentDataCardValue.Attachments.Name, Collect(newCollection, {LocalID: newID, Name: Name}));
So I my question is then, how can I collect both the names and values of the attachment field?
Any help or ideas is highly appreciated.