Retrieve the values of a business object's primary key attributes as a string.
Syntax
String keysToString()
Return values
A String object containing all the key values in a business object, concatenated, and ordered by the ordinal value of the attributes.
Notes
The output from this method contains the name of the attribute and its value. Multiple values are primary key attribute values, concatenated and separated by spaces. For example, if there is one primary key attribute, SS#, this could be the output:
SS#=100408394
If the primary key attributes are FirstName and LastName, this could be the output:
FirstName=Nina LastName=Silk
Examples
The following example returns the values of key attributes of the business object represented by the variable name fromOrder.
String keyValues = fromOrder.keysToString();