Codeunit 5505373 M365 Credential Storage
Codeunit M365 Credential Storage (ID 5505373). Handles creation, storage and deletion of credential information (username, password).
procedure UsernameKey(): Text
Returns the Username key name for a credential JsonObject.
Returns Text
Text
procedure PasswordKey(): Text
Returns the Password key name for a credential JsonObject.
Returns Text
Text
procedure GetCredentialNames(appInfo: ModuleInfo; var credentialNames: List of [Text]): Boolean
Returns a List of [Text] containing the names for all stored credentials.
appInfo ModuleInfo
ModuleInfo
credentialNames List[Text]
List of [Text]
Returns Boolean
Boolean
procedure GetCredentialNames(appId: Guid; var credentialNames: List of [Text]): Boolean
Returns a List of [Text] containing the names for all stored credentials.
appId Guid
Guid
credentialNames List[Text]
List of [Text]
Returns Boolean
Boolean
procedure LookupCredentialName(appInfo: ModuleInfo; var credentialName: Text): Boolean
Allows to do a credential lookup in all stored credentials by name.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
Returns Boolean
Boolean
procedure LookupCredentialName(appId: Guid; var credentialName: Text): Boolean
Allows to do a credential lookup in all stored credentials by name.
appId Guid
Guid
credentialName Text
Text
Returns Boolean
Boolean
procedure HasCredential(appInfo: ModuleInfo; credentialName: Text): Boolean
Returns true if the requested credential exists.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
Returns Boolean
Boolean
procedure HasCredential(appInfo: ModuleInfo; credentialName: Text; raiseError: Boolean): Boolean
Returns true if the requested credential exists. If raiseError is specified, shows an error if the credential does not exist.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
raiseError Boolean
Boolean
Returns Boolean
Boolean
procedure HasCredential(appId: Guid; credentialName: Text): Boolean
Returns true if the requested credential exists.
appId Guid
Guid
credentialName Text
Text
Returns Boolean
Boolean
procedure HasCredential(appId: Guid; credentialName: Text; raiseError: Boolean): Boolean
Returns true if the requested credential exists. If raiseError is specified, shows an error if the credential does not exist.
appId Guid
Guid
credentialName Text
Text
raiseError Boolean
Boolean
Returns Boolean
Boolean
procedure GetCredential(appInfo: ModuleInfo; credentialName: Text; var credentialJson: JsonObject): Boolean
Returns a JsonObject for the specified credentialName containing Username and Password.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure GetCredential(appId: Guid; credentialName: Text; var credentialJson: JsonObject): Boolean
Returns a JsonObject for the specified credentialName containing Username and Password.
appId Guid
Guid
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure GetCredential(appInfo: ModuleInfo; credentialName: Text; var username: Text; var password: Text): Boolean
Returns the stored Username and Password for the specified credentialName.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure GetCredential(appId: Guid; credentialName: Text; var username: Text; var password: Text): Boolean
Returns the stored Username and Password for the specified credentialName.
appId Guid
Guid
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure SetCredential(appInfo: ModuleInfo; var credentialName: Text): Boolean
Adds a new credential named credentialName to the store. A dialog is opened to enter the credential. If credentialName is empty, a new credential name can be entered.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
Returns Boolean
Boolean
procedure SetCredential(appId: Guid; var credentialName: Text): Boolean
Adds a new credential named credentialName to the store. A dialog is opened to enter the credential. If credentialName is empty, a new credential name can be entered.
appId Guid
Guid
credentialName Text
Text
Returns Boolean
Boolean
procedure EditCredential(appInfo: ModuleInfo; var credentialName: Text): Boolean
Edit an existing credential named credentialName in the store. A dialog is opened to update the credential. If credentialName is empty, a new credential name can be entered.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
Returns Boolean
Boolean
procedure EditCredential(appId: Guid; var credentialName: Text): Boolean
Edit an existing credential named credentialName in the store. A dialog is opened to update the credential.
appId Guid
Guid
credentialName Text
Text
Returns Boolean
Boolean
procedure SetCredential(appInfo: ModuleInfo; credentialName: Text; credentialJson: JsonObject): Boolean
Adds a new credential named credentialName to the store.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure SetCredential(appId: Guid; credentialName: Text; credentialJson: JsonObject): Boolean
Adds a new credential named credentialName to the store.
appId Guid
Guid
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure SetCredential(appInfo: ModuleInfo; credentialName: Text; username: Text; password: Text): Boolean
Adds a new credential named credentialName to the store by specifying Username and Password.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure SetCredential(appId: Guid; credentialName: Text; username: Text; password: Text): Boolean
Adds a new credential named credentialName to the store by specifying Username and Password.
appId Guid
Guid
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure DeleteCredential(appInfo: ModuleInfo; credentialName: Text): Boolean
Removes a credential from the store.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
Returns Boolean
Boolean
procedure DeleteCredential(appId: Guid; credentialName: Text): Boolean
Removes a credential from the store.
appId Guid
Guid
credentialName Text
Text
Returns Boolean
Boolean
procedure SetSessionCredential(appInfo: ModuleInfo; credentialName: Text; credentialJson: JsonObject): Boolean
Adds a new session only credential named credentialName.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure SetSessionCredential(appId: Guid; credentialName: Text; credentialJson: JsonObject): Boolean
Adds a new session only credential named credentialName.
appId Guid
Guid
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure SetSessionCredential(appInfo: ModuleInfo; credentialName: Text; username: Text; password: Text): Boolean
Adds a new session only credential named credentialName by specifying Username and Password.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure SetSessionCredential(appId: Guid; credentialName: Text; username: Text; password: Text): Boolean
Adds a new session only credential named credentialName by specifying Username and Password.
appId Guid
Guid
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure HasSessionCredential(appInfo: ModuleInfo; credentialName: Text): Boolean
Returns true if the requested session only credential exists.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
Returns Boolean
Boolean
procedure HasSessionCredential(appInfo: ModuleInfo; credentialName: Text; raiseError: Boolean): Boolean
Returns true if the requested session only credential exists. If raiseError is specified, shows an error if the credential does not exist.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
raiseError Boolean
Boolean
Returns Boolean
Boolean
procedure HasSessionCredential(appId: Guid; credentialName: Text): Boolean
Returns true if the requested session only credential exists.
appId Guid
Guid
credentialName Text
Text
Returns Boolean
Boolean
procedure HasSessionCredential(appId: Guid; credentialName: Text; raiseError: Boolean): Boolean
Returns true if the requested session only credential exists. If raiseError is specified, shows an error if the credential does not exist.
appId Guid
Guid
credentialName Text
Text
raiseError Boolean
Boolean
Returns Boolean
Boolean
procedure GetSessionCredential(appInfo: ModuleInfo; credentialName: Text; var credentialJson: JsonObject): Boolean
Returns a JsonObject for the specified credentialName containing Username and Password.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure GetSessionCredential(appId: Guid; credentialName: Text; var credentialJson: JsonObject): Boolean
Returns a JsonObject for the specified credentialName containing Username and Password.
appId Guid
Guid
credentialName Text
Text
credentialJson JsonObject
JsonObject
Returns Boolean
Boolean
procedure GetSessionCredential(appInfo: ModuleInfo; credentialName: Text; var username: Text; var password: Text): Boolean
Returns the stored Username and Password for the specified credentialName.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure GetSessionCredential(appId: Guid; credentialName: Text; var username: Text; var password: Text): Boolean
Returns the stored Username and Password for the specified credentialName.
appId Guid
Guid
credentialName Text
Text
username Text
Text
password Text
Text
Returns Boolean
Boolean
procedure DeleteSessionCredential(appInfo: ModuleInfo; credentialName: Text): Boolean
Removes a session only credential.
appInfo ModuleInfo
ModuleInfo
credentialName Text
Text
Returns Boolean
Boolean
procedure DeleteSessionCredential(appId: Guid; credentialName: Text): Boolean
Removes a session only credential.
appId Guid
Guid
credentialName Text
Text
Returns Boolean
Boolean
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.