/
15 isArray - DAM v4.8.0
15 isArray - DAM v4.8.0
Some value fields output data, which is 1-many, i.e. sometimes a value field can output a single data point (string or number), or one JSON object, or an array of data.
isArray signifies that a value field's output is always output as an array.
Example:
The value field
With this added value field, the returned search result is (the response contains data other than this single value field, but that data has been omitted for clarity's sake):
{ "items": [ { //The value field "Keywords": [ "Keyword1", "Keyword2" ] }, { //The value field "Keywords": "Keyword2" } ], "success": true, "total": "2" }
The result contains two objects. Each of these objects have a "Keywords" property. The first object has two keywords:
"Keywords": [ "Keyword1", "Keyword2" ]
The second object has only one keyword:
"Keywords": "Keyword2"
If we edit the value field, so that isArray is checked, the returned result is:
{ "items": [ { //The value field "Keywords": [ "Keyword1", "Keyword2" ] }, { //The value field "Keywords": [ "Keyword2" ] } ], "success": true, "total": "2" }
Now both of the objects' Keywords property is an array.
, multiple selections available,
Related content
DC 6.0 isArray
DC 6.0 isArray
More like this
DC 6.0 ID
DC 6.0 ID
More like this
DC 6.0 Value Type
DC 6.0 Value Type
More like this
DC 6.0 Group
DC 6.0 Group
More like this
DC 6.0 GetAssetTypes
DC 6.0 GetAssetTypes
More like this
DC 6.0 Value Field
DC 6.0 Value Field
More like this