I'm trying to create a new card:mutation {
createCard(
input: {
pipe_id: ""XXX""
fields_attributes: {field_id:""ZZZ"", field_value: ""AAA""}
parent_ids: [ ]
}
) { card { id title } }
}The field_id is related to a Database connection. The field_value is a record from that Database.The pipe has the connection configured. Manually we can enter that field with no problems, but, using the API I got the following error:{
""data"": {
""createCard"": null
},
""errors"": [
{
""code"": 30006,
""locations"": [
{
""column"": 10,
""line"": 1
}
],
""message"": ""Invalid inputs: Erro no campo \""ZZZ\"": Value You don't have permission to connect these cards/table records."",
""path"": [
""createCard""
],
""type"": ""MultipleInvalidInputErrors""
}
]
}
Solved
Creating new card using GraphQL
Best answer by genietim
I can imaging your problem to be the missing [] around your fieldValueInput.
Instead of
fields_attributes: {field_id:"ZZZ", field_value: "AAA"}
it needs to be
fields_attributes: [{field_id: "ZZZ", field_value: "AAA"}]
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
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.