Hello everyone,
I'm sure this must be a common use case but I can't spot a solution.
I have a Dataverse Table with SharePoint Document Management enabled ('Make this table an option when.... Setting up SharePoint Document Management' is checked (resource:
Matt Devaney's excellent blog article). Files that I want to store in the related SharePoint Document Library will be arriving from an API, via Power Automate.
The problem is, I can't see how to save the file from Power Automate directly in to the SharePoint document library whilst linking the file to the relevant record in the Dataverse Table.
For example:
1. I can't save the file direct to SharePoint, otherwise, how is it linked to the relevant record in Dataverse? (Edit: The record in Dataverse will be created at the same time that I need to add the File, so, there will not be a document folder in SharePoint that relates to the Dataverse record yet. In other words, I can't perform a look up to the record's document folder in SharePoint yet, as it doesn't exist. Looking at the format of the names of those folders, they are not simply the record's GUID, so I don't think I can make a new folder in the SharePoint document library, as it will not be possible to predict what auto-numbering is given to the folder by Dataverse/SharePoint).
2. I can't save the file to a 'File' column in the Dataverse table, otherwise it will be stored in Dataverse and not the SharePoint document library.
What is the correct methodology?
Thank you!