How to get the link of a file from sharepoint or teams without UI Interaction

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:

  1. Install the SharePoint Online CSOM NuGet package in your UiPath project.
  2. Authenticate to SharePoint using the ClientContext class and your SharePoint credentials.
  3. Use the Web and File classes to access the file and retrieve its URL.

To use the Teams API, you will need to:

  1. Install the Microsoft Teams NuGet package in your UiPath project.
  2. Authenticate to Teams using the GraphServiceClient class and your Teams credentials.
  3. Use the Teams and Channels 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.