Is it possible to create Field Conditionals via Pipefy API Query?
I did my best following the documentation, and got to the query
mutation {
createFieldCondition(
input: {
name: "Mostra Endereço de Entrega para Produtos (show endereco_entrega)",
phaseId: "340497504",
actions: [
{
actionId: "show",
phaseFieldId: "endere_o_de_entrega",
whenEvaluator: true
}
],
condition: {
expressions_structure: [0],
expressions: [
{
field_address: "tipo_de_compra",
operation: "equals",
value: "Produtos",
structure_id: 0
}
]
}
}
) {
fieldCondition {
id
name
}
clientMutationId
}
}
Which yields me
{
"data": {
"createFieldCondition": null
},
"errors": [
{
"message": "Validation failed: Actions field não pode ficar em branco",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"createFieldCondition"
],
"extensions": {
"code": "RECORD_INVALID",
"correlation_id": "98a686b47fd36eb2-GRU"
}
}
]
}
How can I create this conditional?
Page 1 / 1
Você quer criar condicionais em um JSON?
Join us in the Pipefy Community! 🚀
No account yet? Create an account
Login with your Pipefy credentials
or
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.