What is your goal?
rpc://GetCustomFieldOptions expects custom_field_id to be passed.
How to pass the custom_field_info.custom_field_id to this rpc?
What is the problem & what have you tried?
Here’s the code
"name" : "custom_field_values",
"label": "Custom Field Values",
"type": "array",
"advanced": true,
"spec":{
"type": "collection",
"spec":[
{
"name": "custom_field_info",
"type":"collection",
"spec":[
{
"name": "custom_field_id",
"type": "uuid",
"label": "Custom Field Id",
"required": true,
"rpc": {
"label": "Find Custom Field",
"url": "rpc://SearchCustomFields",
"parameters": [
{
"name": "query",
"label": "Custom Field name",
"type": "text"
}
]
}
},
{
"name": "type",
"type": "hidden",
"label": "Type",
"default": "text"
},
{
"name": "name",
"type": "hidden",
"label": "Name",
"default": "dummy"
}
]
},
{
"name": "option_value",
"label": "Option Value",
"type": "collection",
"spec": [
{
"name": "option_id",
"label": "Option Id",
"type": "uuid",
"rpc": {
"label": "Find Custom Field Option",
"url": "rpc://GetCustomFieldOptions",
"parameters": [
{
"name": "query",
"label": "Option",
"type": "text"
}
]
}
}
]
}
]
}
}