Different Behavior of Lookup API Result on Multi-select field

Please note that the Data structure will be different when we are fetching the Multi-select field values using a Lookup API if the values contain Comma

Example :

  1. Multi-select field contains values such as
    Test ABC
    Test XYZ

Then Lookup result will be in the form of Arrays of Objects
[
{Value: “1”, Text : “Test ABC”},
{Value: “2”, Text : “Test XYZ”}
]

  1. Multi-select field contains values such as
    Test ABC
    Test, XYZ

Then Lookup result will be in the form of Object
{Value: “1, 2”, Text : “Test ABC, Test XYZ”}

Not yet confirmed is there any other special character that creates the same impact

Leave a comment

Your email address will not be published. Required fields are marked *