Plaza 365
Plaza 365

No results found for your search

RegisterLog in

2

Visit article

#al

#api

#reports

#sharepoint

Dynamics 365 Business Central

Category

Feb 22, 2025

Published date

Text

Article Type


AI Summary

  • The blog article discusses how to save reports directly to SharePoint via AL in Dynamics 365 Business Central using Microsoft Graph API.
  • Microsoft Graph API is a RESTful web API that allows access to Microsoft Cloud service resources after registering the app and obtaining authentication tokens.
  • Application permissions for the app in the Microsoft Entra admin center are configured by adding permissions for Microsoft Graph -> Application -> Files.ReadWrite.All.
  • Testing in Postman is recommended to verify accessibility to SharePoint by entering the necessary information such as Access Token URL, Client ID, Client Secret, Scope, and SharePoint site URL.
  • GUID of the SharePoint Online site can be obtained by adding the _api/site/id at the end of the Site URL for accessing document libraries information.
  • Endpoints like /drives/{driveId}/root:/{folderPath}:/children are used to get file information in a folder and read the contents of a file.
  • Uploading files to SharePoint from Postman involves using the PUT method with the endpoint specifying the site ID, drive ID, folder, filename, and content.
  • The article also includes code snippets for uploading invoices to SharePoint manually and automatically through Job Queue in Dynamics 365 Business Central.

Registered users can view the full text for FREE!

Sign In Now!