Codeunit 9100 "SharePoint Client"
System Application · System.Integration.Sharepoint
Across versions
- BC23present
- BC241 procedures added
- BC25unchanged
- BC261 procedures added
- BC27-29unchanged
- BC308 procedures added
Neighbourhood 2 connected objects and pages
System Application · System.Integration.Sharepoint · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Events published
Procedures
Initialize(BaseUrl: Text; Authorization: Interface "SharePoint Authorization"): Initializes SharePoint client.Initialize(BaseUrl: Text; Namespace: Text; Authorization: Interface "SharePoint Authorization"): Initializes SharePoint client.GetDiagnostics(): Interface "HTTP Diagnostics": Returns detailed information on last API call.GetLists(var SharePointList: Record "SharePoint List"): Boolean: Gets all lists on the given site.GetListItems(ListTitle: Text; var SharePointListItem: Record "SharePoint List Item"): Boolean: Gets all list items for the given list.GetListItems(ListId: Guid; var SharePointListItem: Record "SharePoint List Item"): Boolean: Gets all list items for the given list.GetListItemAttachments(ListTitle: Text; ListItemId: Integer; var SharePointListItemAtch: Record "SharePoint List Item Atch"): Boolean: Gets all attachments for the given list item.GetListItemAttachments(ListId: Guid; ListItemId: Integer; var SharePointListItemAtch: Record "SharePoint List Item Atch"): Boolean: Gets all attachments for the given list item.DownloadListItemAttachmentContent(ListTitle: Text; ListItemId: Integer; FileName: Text): Boolean: Downloads the specified attachment file to the client.DownloadListItemAttachmentContent(ListId: Guid; ListItemId: Integer; FileName: Text): Boolean: Downloads the specified attachment file to the client.DownloadListItemAttachmentContent(OdataId: Text): Boolean: Downloads the specified attachment file to the client.CreateListItemAttachment(ListTitle: Text; ListItemId: Integer; var SharePointListItemAtch: Record "SharePoint List Item Atch"): Boolean: Creates the list item attachment for given item.CreateListItemAttachment(ListID: Guid; ListItemId: Integer; var SharePointListItemAtch: Record "SharePoint List Item Atch"): Boolean: Creates the list item attachment for given item.CreateListItemAttachment(ListTitle: Text; ListItemId: Integer; FileName: Text; var FileInStream: InStream; var SharePointListItemAtch: Record "SharePoint List Item Atch"): Boolean: Creates a list item attachment for specific list item.CreateListItemAttachment(ListID: Guid; ListItemId: Integer; FileName: Text; var FileInStream: InStream; var SharePointListItemAtch: Record "SharePoint List Item Atch"): Boolean: Creates a list item attachment for specific list item.CreateList(ListTitle: Text; ListDescription: Text; var SharePointList: Record "SharePoint List"): Boolean: Creates a new list.CreateListItem(ListTitle: Text; ListItemEntityTypeFullName: Text; ListItemTitle: Text; var SharePointListItem: Record "SharePoint List Item"): Boolean: Creates a new list item in specific list.CreateListItem(ListId: Guid; ListItemEntityTypeFullName: Text; ListItemTitle: Text; var SharePointListItem: Record "SharePoint List Item"): Boolean: Creates a new list item in specific list.GetSubFoldersByServerRelativeUrl(ServerRelativeUrl: Text; var SharePointFolder: Record "SharePoint Folder"): Boolean: Lists all subfolders in the given folder.GetFolderFilesByServerRelativeUrl(ServerRelativeUrl: Text; var SharePointFile: Record "SharePoint File" temporary): Boolean: Lists all files in the given folder.GetFolderFilesByServerRelativeUrl(ServerRelativeUrl: Text; var SharePointFile: Record "SharePoint File" temporary; ListAllFields: Boolean): Boolean: Lists all files in the given folder.GetFileByServerRelativeUrl(ServerRelativeUrl: Text; var SharePointFile: Record "SharePoint File" temporary; ListAllFields: Boolean): Boolean+ BC24: Gets file data by server relative urlDownloadFileContent(OdataId: Text; var FileInStream: InStream): Boolean: Downloads a file to an InStream.DownloadFileContent(OdataId: Text; FileName: Text): Boolean: Downloads a file to the client.DownloadFileContent(OdataId: Text; var TempBlob: Codeunit "Temp Blob"): Boolean: Downloads a file to a TempBlob.DownloadFileContentByServerRelativeUrl(ServerRelativeUrl: Text; var FileInStream: InStream): Boolean: Downloads a file to an InStream.DownloadFileContentByServerRelativeUrl(ServerRelativeUrl: Text; FileName: Text): Boolean: Downloads a file to the client.DownloadFileContentByServerRelativeUrl(ServerRelativeUrl: Text; var TempBlob: Codeunit "Temp Blob"): Boolean: Downloads a file to a TempBlob.DeleteFile(OdataId: Text): Boolean: Deletes a file.DeleteFileByServerRelativeUrl(ServerRelativeUrl: Text): Boolean: Deletes a file.GetDocumentLibraryRootFolder(OdataID: Text; var SharePointFolder: Record "SharePoint Folder"): Boolean: Gets root folder for the list entity (Document Library).CreateFolder(ServerRelativeUrl: Text; var SharePointFolder: Record "SharePoint Folder"): Boolean: Creates a new folder.FolderExistsByServerRelativeUrl(ServerRelativeUrl: Text): Boolean+ BC26: Checks if a folder exists.DeleteFolder(OdataId: Text): Boolean: Deletes a folder.DeleteFolderByServerRelativeUrl(ServerRelativeUrl: Text): Boolean: Deletes a folder.AddFileToFolder(ServerRelativeUrl: Text; var SharePointFile: Record "SharePoint File" temporary): Boolean: Adds a file to specific folder.AddFileToFolder(ServerRelativeUrl: Text; var SharePointFile: Record "SharePoint File" temporary; ListAllFields: Boolean): Boolean: Adds a file to specific folder.AddFileToFolder(ServerRelativeUrl: Text; FileName: Text; var FileInStream: InStream; var SharePointFile: Record "SharePoint File" temporary): Boolean: Adds a file to specific folder.AddFileToFolder(ServerRelativeUrl: Text; FileName: Text; var FileInStream: InStream; var SharePointFile: Record "SharePoint File" temporary; ListAllFields: Boolean): Boolean: Adds a file to specific folder.UpdateListItemMetaDataField(ListTitle: Text; ItemId: Integer; ListItemEntityTypeFullName: Text; FieldName: Text; FieldValue: Text): Boolean: Updates metadata field for list item.UpdateListItemMetaDataField(ListId: Guid; ItemId: Integer; ListItemEntityTypeFullName: Text; FieldName: Text; FieldValue: Text): Boolean: Updates metadata field for list item.
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 9101 “SharePoint Client Impl.” (23 calls:
AddFileToFolder → AddFileToFolder,CreateFolder → CreateFolder,CreateList → CreateList, …)
Called by
- Codeunit 9103 “SharePoint List Item” (1 call:
ParseSingle → ProcessSharePointListItemMetadata)
Recent changes
- 2026-10-07 #12064 Support SharePoint paths containing hash and percent characters (main, BC30, feature)
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 Client"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.