I would like to know how can I retrieve the attachments from the NWC start up form and attach them to the item in SharePoint list.
I'm using OneDrive as storage location. The collection of the attachments looks like this:
I have tried looping through the Attachment collection variable, but it doesn't retrieve the file. I know the path where the files will get stored, but i need to know the names of the files to attach them to item in sharepoint list.
Only way i have been able to get the name of the files is with these steps:
This gives me the file names and i can then create a loop to add items to SharePoint list item. Is there any better way to perform these steps?
Solved! Go to Solution.
Attachments in NWC forms are stored in a Collection variable. To get the files within that collection you need to Loop For Each element of that collection and store the item of the iteration in a File Variable. Make sure the Store Item variable is of the type File. And then, the action you need inside the loop is the Add attachment to an item SP action that uses the file variable in the loop. Screenshots attached. Hope it helps.