Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b265980
SharePoint Graph API support
Drakonian May 7, 2025
a50eda6
Merge remote-tracking branch 'origin/main' into SharePointGraphAPISup…
Drakonian May 15, 2025
a876ce7
Move site & drive requests from initialization to lazy load upon spec…
Drakonian May 18, 2025
0219ec1
Ability to set http client handler
Drakonian Jun 3, 2025
c7d3570
Merge remote-tracking branch 'origin/main' into SharePointGraphAPISup…
Drakonian Jun 18, 2025
148ab23
Merge branch 'main' into SharePointGraphAPISupport
JesperSchulz Oct 29, 2025
abbd08e
Merge branch 'microsoft:main' into SharePointGraphAPISupport
Drakonian Nov 16, 2025
63510a4
Remove "var" from InStream in Upload operations
Drakonian Nov 16, 2025
d85ce42
Remove unused internal graph pagination procedures
Drakonian Nov 16, 2025
e0f0285
Restore GetAllPages procedure (deleted by mistake)
Drakonian Nov 26, 2025
1a33c07
Additional tests for Graph SharePoint module
Drakonian Dec 1, 2025
55bdc9a
remove duplicate method
Drakonian Dec 1, 2025
5c6eae2
Fix typo with OuStream.Write to CopyStream
Drakonian Dec 1, 2025
eb71ef1
Move sharepoint graph library objects to library app
Drakonian Dec 1, 2025
0a2461b
Move graph sharepoint test to graph folder
Drakonian Dec 1, 2025
edfc8c4
Remove manual subscription mode from prev redesign
Drakonian Dec 3, 2025
f2b00b5
Merge remote-tracking branch 'origin/main' into SharePointGraphAPISup…
Drakonian Dec 4, 2025
f20f340
Merge remote-tracking branch 'origin/main' into SharePointGraphAPISup…
Drakonian Dec 7, 2025
1993cec
Add missed Inherent permissions
Drakonian Dec 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@ enum 9353 "Graph Request Header"
{
Caption = 'ConsistencyLevel', Locked = true;
}

/// <summary>
/// Range Request Header
/// </summary>
value(40; Range)
{
Caption = 'Range', Locked = true;
}
}
6 changes: 6 additions & 0 deletions src/System Application/App/SharePoint/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
"name": "BLOB Storage",
"publisher": "Microsoft",
"version": "28.0.0.0"
},
{
"id": "6d72c93d-164a-494c-8d65-24d7f41d7b61",
"name": "Microsoft Graph",
"publisher": "Microsoft",
"version": "28.0.0.0"
}
],
"screenshots": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ permissionset 9100 "SharePoint API - Objects"
Access = Internal;
Assignable = false;

Permissions = codeunit "SharePoint Client" = X;
Permissions = codeunit "SharePoint Client" = X, codeunit "SharePoint Graph Client" = X;
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

namespace System.Integration.Sharepoint;

/// <summary>
/// Holder object for SharePoint Graph API operation results.
/// </summary>
codeunit 9129 "SharePoint Graph Response"
{
Access = Public;
InherentEntitlements = X;
InherentPermissions = X;

var
SharePointGraphRequestHelper: Codeunit "SharePoint Graph Req. Helper";
IsSuccess: Boolean;
ErrorMessage: Text;
ErrorCallStack: Text;

/// <summary>
/// Checks whether the operation was successful.
/// </summary>
/// <returns>True if the operation was successful; otherwise - false.</returns>
procedure IsSuccessful(): Boolean
begin
exit(IsSuccess);
end;

/// <summary>
/// Gets the error message (if any) of the response.
/// </summary>
/// <returns>Text representation of the error that occurred during the operation.</returns>
procedure GetError(): Text
begin
exit(ErrorMessage);
end;

/// <summary>
/// Gets the call stack at the time of the error.
/// </summary>
/// <returns>The call stack when the error occurred.</returns>
procedure GetErrorCallStack(): Text
begin
exit(ErrorCallStack);
end;

/// <summary>
/// Gets the HTTP diagnostics for the last HTTP request (if any).
/// </summary>
/// <returns>HTTP diagnostics interface for detailed HTTP response information.</returns>
procedure GetHttpDiagnostics(): Interface "HTTP Diagnostics"
begin
exit(SharePointGraphRequestHelper.GetDiagnostics());
end;

/// <summary>
/// Sets the response as successful.
/// </summary>
internal procedure SetSuccess()
begin
IsSuccess := true;
ErrorMessage := '';
ErrorCallStack := '';
end;

/// <summary>
/// Sets the response as failed with an error message.
/// </summary>
/// <param name="NewErrorMessage">The error message to set.</param>
internal procedure SetError(NewErrorMessage: Text)
begin
IsSuccess := false;
ErrorMessage := NewErrorMessage;
ErrorCallStack := SessionInformation.Callstack();
end;

/// <summary>
/// Sets the request helper for HTTP diagnostics access.
/// </summary>
/// <param name="NewSharePointGraphRequestHelper">The request helper instance.</param>
internal procedure SetRequestHelper(var NewSharePointGraphRequestHelper: Codeunit "SharePoint Graph Req. Helper")
begin
SharePointGraphRequestHelper := NewSharePointGraphRequestHelper;
end;
}
Loading