This gem leverages the Microsoft Graph API to seamlessly transfer files from SharePoint to specific Microsoft Teams channels or groups, ensuring efficient and secure document sharing. By automating file synchronization, it enhances collaboration across teams in real-time. The use of Microsoft Graph API ensures scalability and secure access to data within your Microsoft 365 ecosystem. This gem optimizes workflow efficiency, reducing manual effort while maintaining data integrity. The uploaded files will be stored in a newly created folder labeled currentdate_SPFiles, ensuring organized and date-specific file management.
Setup Guide
This gem will receive files from Sharepoint and upload them to Microsoft Teams without the hassle of any tedious copy-paste work.
To run this gem and connect Sharepoint to Microsoft Teams, you need to configure the parameters mentioned below.
Microsoft Graph
Server HostRequired. Default is set tohttps://graph.microsoft.com/v1.0/sites/rootwhen connecting to the default SharePoint instance. Set tohttps://graph.microsoft.com/v1.0/sites/<site-id>when connecting to a specific SharePoint instance.Token FileRequired. Select the Rest Token file from the drop-down list. Review the documentation article here on how to generate the token file.Source Folder FolderRequired. Specify the path to the source folder, ending with a trailing slash.FilterOptional. Specify to filter the list of files.
Microsoft Teams
Server HostRequired. Provide the relevant [Team/Group] identifier in the Server URL.Token FileRequired. Select the Rest Token file from the drop-down list. Review the KB-Article mentioned here on how to generate the token file.Destination FolderRequired. Specify the path to the destination folder, ending with a trailing slash.