In Copilot Studio, I need recommendations on how to access files in our internal sandbox to create files automatically in SharePoint. I am using the SharePoint 'Create file' tool, but I can't export files.
For instance Agent provides output like
Done. I generated a new PowerPoint from the data...## Files written (in `/app/created/`, returned as attachments)
Can't seem to access or use these files e.g. to add via sharepoint but even other ways of access, download the file, email, onedrive etc.
If your goal is to automatically save generated documents to SharePoint, the most robust pattern is to move the document generation into a Power Automate flow or an Azure Function and have that process write the file directly to SharePoint. If the document must be generated within the agent, investigate whether the generation tool can return the file content (binary/Base64) rather than only saving it to /app/created/, since the sandbox directory itself isn't accessible to SharePoint or other connectors.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.