Codeunit 70623687 EOS004 Telem. Payload Builder
Codeunit 70623687 EOS004 Telem. Payload Builder
Provides a builder for telemetry payloads.
Methods
Init
Obsolete
Pending: Use “Initialize” instead. (26.0)procedure Init()
Initialize
procedure Initialize()
Initializes or resets the instance.
Add
procedure Add(Other: Dictionary of [Text, Text])
Add the given dictionary to the payload. Any existing keys will be overwritten.
Parameters / Return Value
Other
Dictionary[Text,Text]The dictionary to add.
Add
procedure Add(var TempNameValueBuffer: Record "Name/Value Buffer")
Add the given name/value buffer to the payload. Any existing keys will be overwritten.
Parameters / Return Value
TempNameValueBuffer
Record "Name/Value Buffer"The name/value buffer to add.
Add
procedure Add(PayloadKey: Text; PayloadValue: Variant)
Add the given key/value pair to the payload. Any existing key will be overwritten.
Parameters / Return Value
PayloadKey
Text[]The key to add.
PayloadValue
VariantThe value to add. This value will be XML-formatted.
AddCaller
procedure AddCaller(mi: ModuleInfo)
Add the given module info as the caller to the payload.
Parameters / Return Value
mi
ModuleInfoThe module info to add.
AddCaller
procedure AddCaller()
Adds the caller of this method as the caller to the payload.
Build
procedure Build(): Dictionary of [Text, Text]
Returns the payload as a dictionary.
Parameters / Return Value
Returns
Dictionary[Text,Text]The payload as a dictionary.
Build
procedure Build(Prefix: Text): Dictionary of [Text, Text]
Returns the payload as a dictionary.
Parameters / Return Value
Prefix
Text[]An optional prefix to add to each key.
Returns
Dictionary[Text,Text]The payload as a dictionary.
Feedback
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.