---
id: object/codeunit/9123
type: object
title: Codeunit 9123 "SharePoint Graph Req. Helper"
summary: Codeunit 9123 "SharePoint Graph Req. Helper" in System Application (System.Integration.Sharepoint). 27 public procedures. Introduced in BC28, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: "28"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 791592143f2684d920d0cbc998fd25dad7b8dda5fb85f68992562a41258739b5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/SharePoint/src/graph/helpers/SharePointGraphReqHelper.Codeunit.al
    title: src/System Application/App/SharePoint/src/graph/helpers/SharePointGraphReqHelper.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 9123
name: SharePoint Graph Req. Helper
namespace: System.Integration.Sharepoint
app: System Application
extends: null
first_version: "28"
last_version: "30"
present_in:
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 33
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 3
  implements: 0
---

# Codeunit 9123 "SharePoint Graph Req. Helper"

> Codeunit 9123 "SharePoint Graph Req. Helper" in System Application (System.Integration.Sharepoint). 27 public procedures. Introduced in BC28, still in BC30.

System Application · System.Integration.Sharepoint · BC28-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/SharePoint/src/graph/helpers/SharePointGraphReqHelper.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `Initialize(GraphAuthorization: Interface "Graph Authorization")`: Initializes the Graph Request Helper with an authorization.
- `Initialize(NewApiVersion: Enum "Graph API Version"; GraphAuthorization: Interface "Graph Authorization")`: Initializes the Graph Request Helper with a specific API version and authorization.
- `Initialize(NewBaseUrl: Text; GraphAuthorization: Interface "Graph Authorization")`: Initializes the Graph Request Helper with a custom base URL and authorization.
- `Initialize(NewApiVersion: Enum "Graph API Version"; GraphAuthorization: Interface "Graph Authorization"; HttpClientHandler: Interface "Http Client Handler")`: Initializes the Graph Request Helper with an HTTP client handler for testing.
- `GetGraphApiBaseUrl(): Text`: Gets the base URL for Graph API calls.
- `Get(Endpoint: Text; var ResponseJson: JsonObject; GraphOptionalParameters: Codeunit "Graph Optional Parameters"): Boolean`: Makes a GET request to the Microsoft Graph API.
- `Get(Endpoint: Text; var ResponseJson: JsonObject): Boolean`: Makes a GET request to the Microsoft Graph API.
- `DownloadFile(Endpoint: Text; var TempBlob: Codeunit "Temp Blob"): Boolean`: Downloads a file from Microsoft Graph API.
- `DownloadFile(Endpoint: Text; var TempBlob: Codeunit "Temp Blob"; GraphOptionalParameters: Codeunit "Graph Optional Parameters"): Boolean`: Downloads a file from Microsoft Graph API with optional parameters.
- `DownloadChunk(Endpoint: Text; RangeStart: BigInteger; RangeEnd: BigInteger; var TempBlob: Codeunit "Temp Blob"): Boolean`: Downloads a chunk of a file using HTTP Range header.
- `Post(Endpoint: Text; RequestBody: JsonObject; var ResponseJson: JsonObject): Boolean`: Makes a POST request to the Microsoft Graph API.
- `Post(Endpoint: Text; RequestBody: JsonObject; GraphOptionalParameters: Codeunit "Graph Optional Parameters"; var ResponseJson: JsonObject): Boolean`: Makes a POST request to the Microsoft Graph API with optional parameters.
- `UploadFile(Endpoint: Text; FileInStream: InStream; var ResponseJson: JsonObject): Boolean`: Uploads a file to Microsoft Graph API.
- `UploadFile(Endpoint: Text; FileInStream: InStream; GraphOptionalParameters: Codeunit "Graph Optional Parameters"; var ResponseJson: JsonObject): Boolean`: Uploads a file to Microsoft Graph API with optional parameters.
- `CreateUploadSession(Endpoint: Text; FileName: Text; FileSize: Integer; GraphOptionalParameters: Codeunit "Graph Optional Parameters"; GraphConflictBehavior: Enum "Graph ConflictBehavior"; var UploadUrlResult: Text): Boolean`: Creates an upload session for chunked file upload.
- `UploadChunk(UploadUrl: Text; var ChunkContent: InStream; ContentRange: Text; var ResponseJson: JsonObject): Boolean`: Uploads a chunk of file content to an upload session.
- `Put(Endpoint: Text; RequestBody: JsonObject; var ResponseJson: JsonObject): Boolean`: Makes a PUT request to the Microsoft Graph API.
- `Put(Endpoint: Text; RequestBody: JsonObject; GraphOptionalParameters: Codeunit "Graph Optional Parameters"; var ResponseJson: JsonObject): Boolean`: Makes a PUT request to the Microsoft Graph API with optional parameters.
- `PutContent(Endpoint: Text; Content: InStream; ContentType: Text; var AdditionalHeaders: Dictionary of [Text, Text]; var ResponseJson: JsonObject): Boolean`: Makes a PUT request with binary content and custom headers to the Microsoft Graph API.
- `PutContent(Endpoint: Text; Content: InStream; ContentType: Text; var AdditionalHeaders: Dictionary of [Text, Text]; GraphOptionalParameters: Codeunit "Graph Optional Parameters"; IsCompleteUrl: Boolean; var ResponseJson: JsonObject): Boolean`: Makes a PUT request with binary content and custom headers to the Microsoft Graph API with optional parameters.
- `Patch(Endpoint: Text; RequestBody: JsonObject; var ResponseJson: JsonObject): Boolean`: Makes a PATCH request to the Microsoft Graph API.
- `Patch(Endpoint: Text; RequestBody: JsonObject; GraphOptionalParameters: Codeunit "Graph Optional Parameters"; var ResponseJson: JsonObject): Boolean`: Makes a PATCH request to the Microsoft Graph API with optional parameters.
- `Delete(Endpoint: Text): Boolean`: Makes a DELETE request to the Microsoft Graph API.
- `Delete(Endpoint: Text; GraphOptionalParameters: Codeunit "Graph Optional Parameters"): Boolean`: Makes a DELETE request to the Microsoft Graph API with optional parameters.
- `GetAllPages(Endpoint: Text; GraphOptionalParameters: Codeunit "Graph Optional Parameters"; var JsonArray: JsonArray): Boolean`: Makes a GET request to the Microsoft Graph API with pagination support and returns all pages automatically.
- `ConfigureConflictBehavior(var GraphOptionalParameters: Codeunit "Graph Optional Parameters"; ConflictBehavior: Enum "Graph ConflictBehavior")`: Configures conflict behavior in optional parameters
- `GetDiagnostics(): Interface "HTTP Diagnostics"`: Returns detailed information on last API call.

Plus 6 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 2356 "Http Response Message"](../codeunit/2356.md) (20 calls: `DownloadChunk → GetErrorMessage`, `DownloadChunk → GetHttpStatusCode`, `DownloadChunk → GetIsSuccessStatusCode`, …)
- [Codeunit 9350 "Graph Client"](../codeunit/9350.md) (5 calls: `CreateUploadSession → Post`, `DownloadChunk → Get`, `Get → Get`, …)
- [Codeunit 2354 "Http Content"](../codeunit/2354.md) (4 calls: `CreateUploadSession → Create`, `UploadChunk → Create`, `UploadChunk → SetContentTypeHeader`, …)
- [Codeunit 9111 "SharePoint Diagnostics"](../codeunit/9111.md) (4 calls: `DownloadChunk → SetParameters`, `GetAllPages → SetParameters`, `ProcessResponse → SetParameters`, …)
- [Codeunit 2350 "Rest Client"](../codeunit/2350.md) (2 calls: `UploadChunk → Initialize`, `UploadChunk → Put`)
- [Codeunit 9353 "Graph Optional Parameters"](../codeunit/9353.md) (2 calls: `ConfigureConflictBehavior → SetMicrosftGraphConflictBehavior`, `DownloadChunk → SetRequestHeader`)
- [Codeunit 3060 "Uri"](../codeunit/3060.md) (1 call: `IsAllowedUploadUrl → IsValidURIPattern`)
- [Codeunit 9121 "SharePoint Graph Uri Builder"](../codeunit/9121.md) (1 call: `PrepareEndpoint → AddOptionalParametersToEndpoint`)

## Called by

- [Codeunit 9120 "SharePoint Graph Client Impl."](../codeunit/9120.md) (38 calls: `CopyItem → GetDiagnostics`, `CopyItem → Post`, `CreateFolder → ConfigureConflictBehavior`, …)
- [Codeunit 9121 "SharePoint Graph Uri Builder"](../codeunit/9121.md) (1 call: `GetGraphApiBaseUrl → GetGraphApiBaseUrl`)
- [Codeunit 9129 "SharePoint Graph Response"](../codeunit/9129.md) (1 call: `GetHttpDiagnostics → GetDiagnostics`)

## Across versions

- Present in: BC28-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "SharePoint Graph Req. Helper")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
