Codeunit 4507 "Email - OAuth Client"
Email - Outlook REST API · System.Email
Across versions
- BC23-28not present
- BC29present
- BC30changed
Neighbourhood 6 connected objects and pages
Email - Outlook REST API · System.Email · BC29-30 · source at ea08af5e · facts from BC29
Events published
OnBeforeGetToken(var IsHandled: Boolean)(internal)
Procedures
GetAccessToken(var AccessToken: SecretText)TryGetAccessToken(var AccessToken: SecretText): BooleanGetLastAuthorizationErrorMessage(): Text(internal)AuthorizationCodeTokenCacheExists(): Boolean(internal)SignInUsingAuthorizationCode(): Boolean(internal)
Plus 4 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 501 “OAuth2” (7 calls:
AuthorizationCodeTokenCacheExists → AcquireAuthorizationCodeTokenFromCache,GetLastAuthorizationErrorMessage → GetLastErrorMessage,Initialize → GetDefaultRedirectURL, …) - Codeunit 457 “Environment Information” (3 calls:
CheckIfThirdParty → IsSaaSInfrastructure,Initialize → IsSaaSInfrastructure,TryGetAccessTokenInternal → IsSaaSInfrastructure) - Codeunit 4509 “Email - Outlook API Helper” (2 calls:
Initialize → GetClientIDAndSecret,Initialize → GetRedirectURL) - Codeunit 6300 “Azure AD Mgt.” (2 calls:
TryGetAccessTokenInternal → GetAccessTokenAsSecretText,TryGetAccessTokenInternal → GetLastErrorMessage) - Codeunit 9005 “Url Helper” (2 calls:
GetOAuthAuthorityUrl → GetAzureADAuthEndpoint,TryGetAccessTokenInternal → GetGraphUrl)
Called by
- Page 4509 “Email - Outlook API Setup” (3 calls:
OnOpenPage → AuthorizationCodeTokenCacheExists,TestSetup → GetLastAuthorizationErrorMessage,TestSetup → TryGetAccessToken)
Implements
Recent changes
- 2026-09-10 #11016 [AI Business Solutions] Enforce allow-listed Redirect URIs, token audiences and authorities for OAuth2 integrations (main, BC30, fix)
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: "Email - OAuth Client"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.