In the configuration is there a way to create a so...
# suitecommerce
m
In the configuration is there a way to create a source that is an array of objects? Like it would come from custom list. The reason I want an object is so it's user friendly allowing user to choose see the labels and then the internal id is delivered when using the configuration in the code. The list that I want to source is a custom segment so it didn't source the list. I tried the following.
Copy code
, "resource": {
        "fields": {
            "regions": [
                {"text": "VAL1", "value": 1}
                , {"text": "VAL2", "value": 2}
                , {"text": "VAL3", "value": 3}
                , {"text": "VAL4", "value": 4}
                , {"text": "N/A", "value": 5}
            ]
        }
    }
...
                    "region": {
                        "type": "string"
                        , "title": "Region"
                        , "source": "$resource.fields.regions"
                    }
I found if I use the custom record associated with the custom segment it worked.