{"title":"Codeunit 9142 SharePoint Auth., procedures","url":"https://jonas-paprotka.de/ref/codeunit/9142-sharepoint-auth/procedures/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":9142,"name":"SharePoint Auth.","app":"System Application","versions":"21-29","url":"https://jonas-paprotka.de/ref/codeunit/9142-sharepoint-auth/","json":"https://jonas-paprotka.de/ref/codeunit/9142-sharepoint-auth.json"},"aspect":"procedures","total":6,"rows":[{"name":"CreateAuthorizationCode","sig":"(Text, Text, Text, Text)","named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: Text; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use CreateAuthorizationCode with SecretText data type for ClientSecret.","tag":"24.0"},"range":"21-26","first":21,"last":26,"obsoleteSince":24,"spans":[{"from":21,"to":22,"named":"(AadTenantId: Text; ClientId: Text; ClientSecret: Text; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null},{"from":23,"to":23,"named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: Text; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null},{"from":24,"to":26,"named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: Text; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use CreateAuthorizationCode with SecretText data type for ClientSecret.","tag":"24.0"}}]},{"name":"CreateAuthorizationCode","sig":"(Text, Text, Text, List)","named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: Text; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use CreateAuthorizationCode with SecretText data type for ClientSecret.","tag":"24.0"},"range":"21-26","first":21,"last":26,"obsoleteSince":24,"spans":[{"from":21,"to":22,"named":"(AadTenantId: Text; ClientId: Text; ClientSecret: Text; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null},{"from":23,"to":23,"named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: Text; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null},{"from":24,"to":26,"named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: Text; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use CreateAuthorizationCode with SecretText data type for ClientSecret.","tag":"24.0"}}]},{"name":"CreateAuthorizationCode","sig":"(Text, Text, SecretText, Text)","named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: SecretText; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: SecretText; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null}]},{"name":"CreateAuthorizationCode","sig":"(Text, Text, SecretText, List)","named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: SecretText; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(EntraTenantId: Text; ClientId: Text; ClientSecret: SecretText; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null}]},{"name":"CreateClientCredentials","sig":"(Text, Text, SecretText, SecretText, Text)","named":"(AadTenantId: Text; ClientId: Text; Certificate: SecretText; CertificatePassword: SecretText; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(AadTenantId: Text; ClientId: Text; Certificate: SecretText; CertificatePassword: SecretText; Scope: Text)","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null}]},{"name":"CreateClientCredentials","sig":"(Text, Text, SecretText, SecretText, List)","named":"(AadTenantId: Text; ClientId: Text; Certificate: SecretText; CertificatePassword: SecretText; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(AadTenantId: Text; ClientId: Text; Certificate: SecretText; CertificatePassword: SecretText; Scopes: List of [Text])","returns":"Interface SharePoint Authorization","kind":"procedure","access":"public","obsolete":null}]}]}