When users create an opportunity record, I need to create a custom folder in Sharepoint, with several subfolders and then create a document location record that points to the root of it so the sub folders appear in the documents area like what is shown below.
However I get an error at the very end when I try to create the document location record.
This is the error I get: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
My flow is shown below.
It creates the SharePoint folders properly.
However, it does not successfully create the document location record to link the folders due to the error Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
The DataVerse/Flow Action Card that is supposed to create the Document location record is shown below.
What could I be missing or overlooking?