Codeunit 5505373 M365 Credential Storage

Codeunit 5505373 M365 Credential Storage

Codeunit M365 Credential Storage (ID 5505373). Handles creation, storage and deletion of credential information (username, password).

Methods

UsernameKey

procedure UsernameKey(): Text

Returns the Username key name for a credential JsonObject.

Parameters / Return Value

  • Returns Text

    Text


PasswordKey

procedure PasswordKey(): Text

Returns the Password key name for a credential JsonObject.

Parameters / Return Value

  • Returns Text

    Text


GetCredentialNames

procedure GetCredentialNames(appInfo: ModuleInfo; var credentialNames: List of [Text]): Boolean

Returns a List of [Text] containing the names for all stored credentials.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialNames List[Text]

    List of [Text]

  • Returns Boolean

    Boolean


GetCredentialNames

procedure GetCredentialNames(appId: Guid; var credentialNames: List of [Text]): Boolean

Returns a List of [Text] containing the names for all stored credentials.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialNames List[Text]

    List of [Text]

  • Returns Boolean

    Boolean


LookupCredentialName

procedure LookupCredentialName(appInfo: ModuleInfo; var credentialName: Text): Boolean

Allows to do a credential lookup in all stored credentials by name.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


LookupCredentialName

procedure LookupCredentialName(appId: Guid; var credentialName: Text): Boolean

Allows to do a credential lookup in all stored credentials by name.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


HasCredential

procedure HasCredential(appInfo: ModuleInfo; credentialName: Text): Boolean

Returns true if the requested credential exists.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


HasCredential

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.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • raiseError Boolean

    Boolean

  • Returns Boolean

    Boolean


HasCredential

procedure HasCredential(appId: Guid; credentialName: Text): Boolean

Returns true if the requested credential exists.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


HasCredential

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.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • raiseError Boolean

    Boolean

  • Returns Boolean

    Boolean


GetCredential

procedure GetCredential(appInfo: ModuleInfo; credentialName: Text; var credentialJson: JsonObject): Boolean

Returns a JsonObject for the specified credentialName containing Username and Password.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


GetCredential

procedure GetCredential(appId: Guid; credentialName: Text; var credentialJson: JsonObject): Boolean

Returns a JsonObject for the specified credentialName containing Username and Password.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


GetCredential

procedure GetCredential(appInfo: ModuleInfo; credentialName: Text; var username: Text; var password: Text): Boolean

Returns the stored Username and Password for the specified credentialName.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


GetCredential

procedure GetCredential(appId: Guid; credentialName: Text; var username: Text; var password: Text): Boolean

Returns the stored Username and Password for the specified credentialName.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


SetCredential

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.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


SetCredential

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.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


EditCredential

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.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


EditCredential

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.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


SetCredential

procedure SetCredential(appInfo: ModuleInfo; credentialName: Text; credentialJson: JsonObject): Boolean

Adds a new credential named credentialName to the store.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


SetCredential

procedure SetCredential(appId: Guid; credentialName: Text; credentialJson: JsonObject): Boolean

Adds a new credential named credentialName to the store.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


SetCredential

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.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


SetCredential

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.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


DeleteCredential

procedure DeleteCredential(appInfo: ModuleInfo; credentialName: Text): Boolean

Removes a credential from the store.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


DeleteCredential

procedure DeleteCredential(appId: Guid; credentialName: Text): Boolean

Removes a credential from the store.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


SetSessionCredential

procedure SetSessionCredential(appInfo: ModuleInfo; credentialName: Text; credentialJson: JsonObject): Boolean

Adds a new session only credential named credentialName.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


SetSessionCredential

procedure SetSessionCredential(appId: Guid; credentialName: Text; credentialJson: JsonObject): Boolean

Adds a new session only credential named credentialName.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


SetSessionCredential

procedure SetSessionCredential(appInfo: ModuleInfo; credentialName: Text; username: Text; password: Text): Boolean

Adds a new session only credential named credentialName by specifying Username and Password.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


SetSessionCredential

procedure SetSessionCredential(appId: Guid; credentialName: Text; username: Text; password: Text): Boolean

Adds a new session only credential named credentialName by specifying Username and Password.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


HasSessionCredential

procedure HasSessionCredential(appInfo: ModuleInfo; credentialName: Text): Boolean

Returns true if the requested session only credential exists.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


HasSessionCredential

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.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • raiseError Boolean

    Boolean

  • Returns Boolean

    Boolean


HasSessionCredential

procedure HasSessionCredential(appId: Guid; credentialName: Text): Boolean

Returns true if the requested session only credential exists.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


HasSessionCredential

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.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • raiseError Boolean

    Boolean

  • Returns Boolean

    Boolean


GetSessionCredential

procedure GetSessionCredential(appInfo: ModuleInfo; credentialName: Text; var credentialJson: JsonObject): Boolean

Returns a JsonObject for the specified credentialName containing Username and Password.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


GetSessionCredential

procedure GetSessionCredential(appId: Guid; credentialName: Text; var credentialJson: JsonObject): Boolean

Returns a JsonObject for the specified credentialName containing Username and Password.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • credentialJson JsonObject

    JsonObject

  • Returns Boolean

    Boolean


GetSessionCredential

procedure GetSessionCredential(appInfo: ModuleInfo; credentialName: Text; var username: Text; var password: Text): Boolean

Returns the stored Username and Password for the specified credentialName.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


GetSessionCredential

procedure GetSessionCredential(appId: Guid; credentialName: Text; var username: Text; var password: Text): Boolean

Returns the stored Username and Password for the specified credentialName.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • username Text

    Text

  • password Text

    Text

  • Returns Boolean

    Boolean


DeleteSessionCredential

procedure DeleteSessionCredential(appInfo: ModuleInfo; credentialName: Text): Boolean

Removes a session only credential.

Parameters / Return Value

  • appInfo ModuleInfo

    ModuleInfo

  • credentialName Text

    Text

  • Returns Boolean

    Boolean


DeleteSessionCredential

procedure DeleteSessionCredential(appId: Guid; credentialName: Text): Boolean

Removes a session only credential.

Parameters / Return Value

  • appId Guid

    Guid

  • credentialName Text

    Text

  • Returns Boolean

    Boolean



EOS Labs -