I want to get the link of a file from teams or Sharepoint without interacting it with UI
I am using microsoft 365 office so is there any way by which we can get the link by using the same.
Hi @Kunal_Jain
To get the link of a file from SharePoint or Teams without UI interaction in UiPath, you can use the SharePoint or Teams API to access the file and retrieve its link.
To use the SharePoint API, you will need to:
- Install the SharePoint Online CSOM NuGet package in your UiPath project.
- Authenticate to SharePoint using the
ClientContext
class and your SharePoint credentials. - Use the
Web
andFile
classes to access the file and retrieve its URL.
To use the Teams API, you will need to:
- Install the Microsoft Teams NuGet package in your UiPath project.
- Authenticate to Teams using the
GraphServiceClient
class and your Teams credentials. - Use the
Teams
andChannels
classes to access the file and retrieve its link.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.