Codeunit 70623699 EOS004 Environment Property
Provides access to a database-wide key-value store.
Any values in this store will be included in telemetry that is sent using codeunit EOS004 Telem. Payload Builder
.
procedure ToNameValueBuffer(var TempNameValueBuffer: Record "Name/Value Buffer")
Retrieves all key-value pairs and stores them in the provided temporary buffer.
TempNameValueBuffer Record "Name/Value Buffer"
The temporary name/value buffer to populate.
procedure List(): Dictionary of [Text[250], Text[250]]
Retrieves all key-value pairs from the database and returns them as a dictionary. This method caches the results for subsequent calls to improve performance.
Returns Dictionary[Text,Text]
The dictionary containing all key-value pairs.
procedure Get(PropertyKey: Text[250]): Text[250]
Retrieves the value associated with the specified property key. If the key does not exist, an empty string is returned. This will also cache the result for subsequent calls.
PropertyKey Text[250]
The key of the property to retrieve.
Returns Text[250]
The value associated with the specified key, or an empty string if the key does not exist.
procedure Set(PropertyKey: Text[250]; PropertyValue: Text[250])
Sets the value for the specified property key. This will cause the cache to be reset, so subsequent reads will reflect the new value.
PropertyKey Text[250]
The key of the property to set.
PropertyValue Text[250]
The value to set for the specified key.
procedure Delete(PropertyKey: Text[250]): Boolean
Deletes the property with the specified key, if it exists.
PropertyKey Text[250]
The key of the property to delete.
Returns Boolean
true
if the property was deleted, false
if it did not exist.
procedure ResetCache()
Resets the cache of key-value pairs.
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.