Codeunit 5505363 M365 Dictionary Management
Codeunit 5505363 M365 Dictionary Management
Methods
DictionaryToJsonDictionary
procedure DictionaryToJsonDictionary(fromDict: Dictionary of [Text, Text]; var toJsonDict: Codeunit "M365 Json Dictionary"; keepExisting: Boolean): Boolean
Convert a BC Dictionary of [Text, Text] into more powerful Json Dictionary.
Parameters / Return Value
fromDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
toJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
DictionaryToJsonDictionary
procedure DictionaryToJsonDictionary(fromDict: Dictionary of [Text, Text]; var toJsonDict: Codeunit "M365 Json Dictionary"): Boolean
Convert a BC Dictionary of [Text, Text] into more powerful Json Dictionary.
Parameters / Return Value
fromDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
toJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
Returns
Boolean
Boolean
JsonDictionaryToDictionary
procedure JsonDictionaryToDictionary(var fromJsonDict: Codeunit "M365 Json Dictionary"; var toDict: Dictionary of [Text, Text]; keepExisting: Boolean): Boolean
Convert from a Json Dictionary to a BC Dictionary of [Text, Text].
Parameters / Return Value
fromJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
toDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
JsonDictionaryToDictionary
procedure JsonDictionaryToDictionary(var fromJsonDict: Codeunit "M365 Json Dictionary"; var toDict: Dictionary of [Text, Text]): Boolean
Convert from a Json Dictionary to a BC Dictionary of [Text, Text].
Parameters / Return Value
fromJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
toDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
Returns
Boolean
Boolean
Serialize
procedure Serialize(fromDict: Dictionary of [Text, Text]; var toTempBlob: Codeunit "Temp Blob"): Boolean
Serialize a Dictionary of [Text, Text] into a TempBlob.
Parameters / Return Value
fromDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
toTempBlob
Codeunit "Temp Blob"
Codeunit “M365 Json Dictionary”
Returns
Boolean
Boolean
Serialize
procedure Serialize(fromDict: Dictionary of [Text, Text]; var toText: Text): Boolean
Serialize a Dictionary of [Text, Text] into Text.
Parameters / Return Value
fromDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
toText
Text
Text
Returns
Boolean
Boolean
Serialize
procedure Serialize(var fromJsonDict: Codeunit "M365 Json Dictionary"; var toTempBlob: Codeunit "Temp Blob"): Boolean
Serialize a Dictionary represented by a “M365 Json Dictionary” Codeunit into a TempBlob.
Parameters / Return Value
fromJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
toTempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
Returns
Boolean
Boolean
Serialize
procedure Serialize(var fromJsonDict: Codeunit "M365 Json Dictionary"; var toText: Text): Boolean
Serialize a Dictionary represented by a “M365 Json Dictionary” Codeunit into Text.
Parameters / Return Value
fromJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
toText
Text
Text
Returns
Boolean
Boolean
Deserialize
procedure Deserialize(var fromTempBlob: Codeunit "Temp Blob"; var toDict: Dictionary of [Text, Text]): Boolean
Deserialize a Json representation of a dictionary object contained in a TempBlob back to a dictionary object.
Parameters / Return Value
fromTempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
toDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
Returns
Boolean
Boolean
Deserialize
procedure Deserialize(fromText: Text; var toDict: Dictionary of [Text, Text]): Boolean
Deserialize a Json representation of a dictionary object contained in a Text back to a dictionary object.
Parameters / Return Value
fromText
Text
Text
toDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
Returns
Boolean
Boolean
Deserialize
procedure Deserialize(fromText: Text; var toJsonDict: Codeunit "M365 Json Dictionary"): Boolean
Deserialize a Text containing a serialized Dictionary represented by a “M365 Json Dictionary” Codeunit.
Parameters / Return Value
fromText
Text
Text
toJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
Returns
Boolean
Boolean
Deserialize
procedure Deserialize(var fromTempBlob: Codeunit "Temp Blob"; var toJsonDict: Codeunit "M365 Json Dictionary"): Boolean
Deserialize a TempBlob containing a serialized Dictionary represented by a “M365 Json Dictionary” Codeunit.
Parameters / Return Value
fromTempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
toJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
Returns
Boolean
Boolean
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(fromDict: Dictionary of [Text, Text]; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary; keepExisting: Boolean): Boolean
Transfer the contents of a Dictionary of [Text, Text] to a temporary Name/Value Buffer. Specify keepExisting if you do not want existing records to be deleted.
Parameters / Return Value
fromDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
tempToNameValueBuffer
Record "Name/Value Buffer"
Record of
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(fromDict: Dictionary of [Text, Text]; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary): Boolean
Transfer the contents of a Dictionary of [Text, Text] to a temporary Name/Value Buffer. Existing records will be deleted.
Parameters / Return Value
fromDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
tempToNameValueBuffer
Record "Name/Value Buffer"
Record of
Returns
Boolean
Boolean
ListToNameValueBuffer
procedure ListToNameValueBuffer(fromList: List of [Text]; fromCaptionList: List of [Text]; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary; keepExisting: Boolean): Boolean
Transfer the contents of a List of [Text] to a temporary Name/Value Buffer. The captions are also copied and the list must have the same length as the base list. Specify keepExisting if you do not want existing records to be deleted.
Parameters / Return Value
fromList
List[Text]
List of [Text]
fromCaptionList
List[Text]
List of [Text]
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
ListToNameValueBuffer
procedure ListToNameValueBuffer(fromList: List of [Text]; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary; keepExisting: Boolean): Boolean
Transfer the contents of a List of [Text] to a temporary Name/Value Buffer. Specify keepExisting if you do not want existing records to be deleted.
Parameters / Return Value
fromList
List[Text]
List of [Text]
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
ListToNameValueBuffer
procedure ListToNameValueBuffer(fromList: List of [Text]; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary): Boolean
Transfer the contents of a List of [Text] to a temporary Name/Value Buffer. Existing records will be deleted.
Parameters / Return Value
fromList
List[Text]
List of [Text]
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
Returns
Boolean
Boolean
ListToNameValueBuffer
procedure ListToNameValueBuffer(var fromList: List of [Integer]; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary): Boolean
Transfer the contents of a List of [Integer] to a temporary Name/Value Buffer. Existing records will be deleted.
Parameters / Return Value
fromList
List[Integer]
List of [Integer]
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
Returns
Boolean
Boolean
JoinList
procedure JoinList(fromList: List of [Text]; separator: Text): Text
Joins a List of [Text] to a separated string.
Parameters / Return Value
fromList
List[Text]
The list whose entries are to be joined
separator
Text
The separator text to be used between each entry
Returns
Text
The joined text
JoinList
procedure JoinList(fromList: List of [Text]): Text
Joins a List of [Text] to a comma separated string.
Parameters / Return Value
fromList
List[Text]
The list whose entries are to be joined
Returns
Text
The joined text
CompressList
procedure CompressList(var theList: List of [Text]): Boolean
Compresses a List of [Text] and removes empty entries.
Parameters / Return Value
theList
List[Text]
The list whose entries are to be compressed.
Returns
Boolean
Boolean. True if the list was compressed, false otherwise.
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(fromJsonDict: Codeunit "M365 Json Dictionary"; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary; keepExisting: Boolean): Boolean
Transfer the contents of a Dictionary represented by a “M365 Json Dictionary” Codeunit to a temporary Name/Value Buffer. Specify keepExisting if you do not want existing records to be deleted.
Parameters / Return Value
fromJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(fromJsonDict: Codeunit "M365 Json Dictionary"; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary): Boolean
Transfer the contents of a Dictionary represented by a “M365 Json Dictionary” Codeunit to a temporary Name/Value Buffer.
Parameters / Return Value
fromJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
Returns
Boolean
Boolean
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(jsonObjectDict: JsonObject; jsonTypeDict: JsonObject; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary; keepExisting: Boolean): Boolean
Transfer the contents of a Dictionary represented by a JsonObject with Types in another JsonObject to a temporary Name/Value Buffer. Specify keepExisting if you do not want existing records to be deleted.
Parameters / Return Value
jsonObjectDict
JsonObject
JsonObject
jsonTypeDict
JsonObject
JsonObject
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(jsonObjectDict: JsonObject; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary; keepExisting: Boolean): Boolean
Transfer the contents of a Dictionary represented by a JsonObject to a temporary Name/Value Buffer. Specify keepExisting if you do not want existing records to be deleted.
Parameters / Return Value
jsonObjectDict
JsonObject
JsonObject
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(jsonObjectDict: JsonObject; jsonTypeDict: JsonObject; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary): Boolean
Transfer the contents of a Dictionary represented by a JsonObject with Types in another JsonObject to a temporary Name/Value Buffer.
Parameters / Return Value
jsonObjectDict
JsonObject
JsonObject
jsonTypeDict
JsonObject
JsonObject
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
Returns
Boolean
Boolean
DictionaryToNameValueBuffer
procedure DictionaryToNameValueBuffer(jsonObjectDict: JsonObject; var tempToNameValueBuffer: Record "Name/Value Buffer" temporary): Boolean
Transfer the contents of a Dictionary represented by a JsonObject to a temporary Name/Value Buffer.
Parameters / Return Value
jsonObjectDict
JsonObject
JsonObject
tempToNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
Returns
Boolean
Boolean
NameValueBufferToDictionary
procedure NameValueBufferToDictionary(var fromNameValueBuffer: Record "Name/Value Buffer"; var toDict: Dictionary of [Text, Text]; keepExisting: Boolean): Boolean
Transfer the contents of a (temporary) Name/Value Buffer to a Dictionary of [Text, Text]. Specify keepExisting if you do not want existing entries to be deleted.
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
NameValueBufferToDictionary
procedure NameValueBufferToDictionary(var fromNameValueBuffer: Record "Name/Value Buffer"; var toDict: Dictionary of [Text, Text]): Boolean
Transfer the contents of a (temporary) Name/Value Buffer to a Dictionary of [Text, Text].
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toDict
Dictionary[Text,Text]
Dictionary of [Text, Text]
Returns
Boolean
Boolean
NameValueBufferToDictionary
procedure NameValueBufferToDictionary(var fromNameValueBuffer: Record "Name/Value Buffer"; jsonTypeDict: JsonObject; var toJsonDict: Codeunit "M365 Json Dictionary"; keepExisting: Boolean): Boolean
Transfer the contents of a (temporary) Name/Value Buffer to a Dictionary represented by a “M365 Json Dictionary” Codeunit. Specify keepExisting if you do not want existing entries to be deleted.
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
jsonTypeDict
JsonObject
JsonObject
toJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
NameValueBufferToDictionary
procedure NameValueBufferToDictionary(var fromNameValueBuffer: Record "Name/Value Buffer"; var toJsonDict: Codeunit "M365 Json Dictionary"; keepExisting: Boolean): Boolean
Transfer the contents of a (temporary) Name/Value Buffer to a Dictionary represented by a “M365 Json Dictionary” Codeunit. Specify keepExisting if you do not want existing entries to be deleted.
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
NameValueBufferToDictionary
procedure NameValueBufferToDictionary(var fromNameValueBuffer: Record "Name/Value Buffer"; var toJsonDict: Codeunit "M365 Json Dictionary"): Boolean
Transfer the contents of a (temporary) Name/Value Buffer to a Dictionary represented by a “M365 Json Dictionary” Codeunit.
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toJsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
Returns
Boolean
Boolean
NameValueBufferToList
procedure NameValueBufferToList(var fromNameValueBuffer: Record "Name/Value Buffer"; var toList: List of [Text]; keepExisting: Boolean): Boolean
Transfer the contents of a (temporary) Name/Value Buffer to a List of [Text]. Specify keepExisting if you do not want existing entries to be deleted.
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toList
List[Text]
List of [Text]
keepExisting
Boolean
Boolean
Returns
Boolean
Boolean
NameValueBufferToList
procedure NameValueBufferToList(var fromNameValueBuffer: Record "Name/Value Buffer"; var toList: List of [Text]): Boolean
Transfer the contents of a (temporary) Name/Value Buffer to a List of [Text]. Existing entries will be deleted.
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toList
List[Text]
List of [Text]
Returns
Boolean
Boolean
NameValueBufferToList
procedure NameValueBufferToList(var tempFromNameValueBuffer: Record "Name/Value Buffer" temporary; var toList: List of [Integer]): Boolean
Transfer the Names of a (temporary) Name/Value Buffer to a List of [Integer]. Existing entries will be deleted.
Parameters / Return Value
tempFromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toList
List[Integer]
List of [Integer]
Returns
Boolean
Boolean
ShowDictionary
procedure ShowDictionary(dict: Dictionary of [Text, Text]; placeOnName: Text)
Show the contents of a Dictionary of [Text, Text].
Parameters / Return Value
dict
Dictionary[Text,Text]
Dictionary of [Text, Text]
placeOnName
Text
Text
ShowDictionary
procedure ShowDictionary(var jsonDict: Codeunit "M365 Json Dictionary"; placeOnName: Text)
Show the contents of a Dictionary represented by a “M365 Json Dictionary” Codeunit.
Parameters / Return Value
jsonDict
Codeunit "M365 Json Dictionary"
Codeunit “M365 Json Dictionary”
placeOnName
Text
Text
ShowList
procedure ShowList(listToShow: List of [Text]; placeOnName: Text)
Show the contents of a List of [Text].
Parameters / Return Value
listToShow
List[Text]
List of [Text]
placeOnName
Text
Text
ShowTempBlobDictionary
procedure ShowTempBlobDictionary(var tempBlob: Codeunit "Temp Blob"; placeOnName: Text): Boolean
Allows a serialized Dictionary of [Text, Text] in a TempBlob Blob field to be shown. The Record pointer is placed on placeOnName.
Parameters / Return Value
tempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
placeOnName
Text
Text
Returns
Boolean
Boolean
ShowTempBlobDictionary
procedure ShowTempBlobDictionary(var tempBlob: Codeunit "Temp Blob"): Boolean
Allows a serialized Dictionary of [Text, Text] in a TempBlob Blob field to be shown.
Parameters / Return Value
tempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
Returns
Boolean
Boolean
EditTempBlobDictionary
procedure EditTempBlobDictionary(var tempBlob: Codeunit "Temp Blob"; placeOnName: Text): Boolean
Allows a serialized Dictionary represented by a “M365 Json Dictionary” Codeunit in a TempBlob Blob field to be edited as name/value pairs. The Record pointer is placed on placeOnName.
Parameters / Return Value
tempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
placeOnName
Text
Text
Returns
Boolean
Boolean
EditTempBlobDictionary
procedure EditTempBlobDictionary(var tempBlob: Codeunit "Temp Blob"): Boolean
Allows a serialized Dictionary in a TempBlob Blob field to be edited as name/value pairs.
Parameters / Return Value
tempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
Returns
Boolean
Boolean
NameValueBufferToTempBlob
procedure NameValueBufferToTempBlob(var fromNameValueBuffer: Record "Name/Value Buffer"; var toTempBlob: Codeunit "Temp Blob"): Boolean
Serialize Name/Value Buffer Records (Name/Value pairs) into a TempBlob (dictionary).
Parameters / Return Value
fromNameValueBuffer
Record "Name/Value Buffer"
Record “Name/Value Buffer”
toTempBlob
Codeunit "Temp Blob"
Codeunit “Temp Blob”
Returns
Boolean
Boolean
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.