---
id: change/bcapps/9454
type: change
title: "#9454 Fix site scoped contextinfo"
summary: SharePoint request-digest calls now correctly target site-scoped URLs instead of tenant root for operations like CreateList, CreateListItem, CreateFolder, and UpdateListItemMetaDataField.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit sharepoint client impl.
  - codeunit sharepoint uri builder
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:31.700Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6561ab791f54f260e13b593467121d6895909629
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9454
    title: "microsoft/BCApps#9454: Fix site scoped contextinfo"
    date: "2026-08-17"
    commit: 6561ab791f54f260e13b593467121d6895909629
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/9101
    - object/codeunit/9110
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9454
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9454
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-17T13:12:09Z"
author: jorisvanduyse
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: System Application"
  - From Fork
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 62
  deletions: 5
  al: 2
apps:
  - System Application
objects_touched:
  - key: codeunit/9101
    page: codeunit/9101
    type: codeunit
    id: 9101
    name: SharePoint Client Impl.
    app: System Application
    status: modified
  - key: codeunit/9110
    page: codeunit/9110
    type: codeunit
    id: 9110
    name: SharePoint Uri Builder
    app: System Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 8932
work_items:
  - 630670
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9454 Fix site scoped contextinfo

> SharePoint request-digest calls now correctly target site-scoped URLs instead of tenant root for operations like CreateList, CreateListItem, CreateFolder, and UpdateListItemMetaDataField.

[Pull request](https://github.com/microsoft/BCApps/pull/9454) · merged into `main` (BC30) on 2026-08-17 by jorisvanduyse (community contribution) · 4 files (+62 -5), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Request-digest acquisition now uses site-base URL accessor instead of hostname-only for proper site scoping
- GetHost() method remains unchanged to preserve behavior for hostname-only consumers
- Added regression tests to verify contextinfo requests retain the configured /sites/<site> path
- Fixes site-scoped SharePoint URL targeting issue that was incorrectly routing to tenant root
- No breaking changes to public APIs or schema
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 9101 "SharePoint Client Impl."](../../objects/codeunit/9101.md), System Application: modified
- [Codeunit 9110 "SharePoint Uri Builder"](../../objects/codeunit/9110.md), System Application: modified

## Context

- Fixes: [#8932 [Bug]: Sharepoint External File Account uses tenant-root contextinfo endpoint, failing under scoped Sites.Selected](https://github.com/microsoft/BCApps/issues/8932) (closed)
- Work items: AB#630670
- Labels: ADO: Sync, AL: System Application, From Fork, Team: Integrations
- Systems: integration

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
