Continuing the discussion from Enable saving of object set filters in Workshop:
Hi,
Can anyone guide how can I initialize an ObjectSetFilter variable in workshop through a function or json string to be used in widgets like exploration pills?
Let’s say I managed to persistently save ObjectSetFilter as a string on new ObjectType. I can then return it back either as json or string using custom function. However, how do I return it back/as ObjectSetFilter variable?
{
"and": {
"filters": [
{
"objectType": {
"objectTypeId": "..."
},
"type": "objectType"
},
{
"parameterizedExactMatch": {
"propertyId": "analytic_exclusion",
"terms": [
{
"resolved": {
"value": false
},
"type": "resolved"
}
]
},
"type": "parameterizedExactMatch"
},
]
},
"type": "and"
}
I see some nice solution here by @Phil-M. But unclear on how ObjectSetFilter can be re-intialized using JSON string even let’s say there is a custom function to return raw json.
If a function returns raw json, would it be automatically intialized as ObjectSetFilter?
Thank you.