Hello, I’m new to Fibery and lack programming skills but I’m setting up a scenario through Integromat that’s supposed to update a enum field based on various things outside of Fibery.
When doing it through Integromat you need to send the fiberyID for the enum, when hardcoding it it works fine but since the enum is 34 different options I need to send the FiberyID
Example:
equals
5d91fa30-77d5-11ec-873c-79fed3408808
So i figured I could do an API request to search for the specific enum ID and pass it to update later on, but running into issues when doing the query for enum value
This request works fine because FDFilial is just a text field.
[
{
“command”: “fibery.entity/query”,
“args”: {
“query”: {
“q/from”: “EBB-Database/DatabaseEBB”,
“q/select”: [
“fibery/id”,
{
“EBB-Database/Filial”: [
“fibery/id”,
“enum/name”
]
}
],
“q/where”: [
“=”,
[
“EBB-Database/IMEI”
],
“$search”
],
“q/limit”: 1
},
“params”: {
“$search”: “357010078609011”
}
}
}
]
But when trying to search for ‘Filial’ (which is a enum field) with the request
[
{
“command”: “fibery.entity/query”,
“args”: {
“query”: {
“q/from”: “EBB-Database/DatabaseEBB”,
“q/select”: [
“fibery/id”,
{
“EBB-Database/Filial”: [
“fibery/id”,
“enum/name”
]
}
],
“q/where”: [
“=”,
[
“EBB-Database/Filial”
],
“$search”
],
“q/limit”: 1
},
“params”: {
“$search”: “013”
}
}
}
]
I get
{
“success”: false,
“result”: {
“name”: “entity.error/query-func-expr-type-invalid”,
“message”: “Invalid query func expression database q/field-secured-access?, q/in, fibery/acl, fibery/access-group, fibery/id, $fibery/user-group-ids, EBB-Database/Filial, {“param-var”:”$anon-param17",“param-type”:“fibery/nil”}."
So what am I doing wrong?
Any help would be grateful
Thanks in advance