How to get/filter option code in an optionset with specified option name in web api

as title. how to get/filter option code in an optionset with specified option name in web api

just want to return the specified option name β€˜s id or code with api

1 Like

I found this:

/api/42/options?fields=id,name,code,optionSet[name,code]&filters=name:eq:[some value]&filter=optionSet.code:eq:[some code]&headness=true

get the option name,code of an optionset:

/api/optionSets/?fields=name,code,options[name,code]&filter=code:eq:[some]

1 Like

Hi @linxd

Glad you found the solution and thanks for sharing!

But performance is low for large number of options by this way.