Hello.
Please, I need include Assignee select on database. But at field persist empty.
follow code.
mutation {
createTableRecord(input:{
table_id:"pWRuu4qV",
fields_attributes:[
{field_id:"suplente",field_value:"["aaaaaaaaaaaaa"]"},
]
}) {
clientMutationId
}
}
Tks.
Solved
createTableRecord
Best answer by Roberto Chavarria
Hello Sérgio, hope all is well!
You’d need to use the user’s ID instead of text.
Here is an example of how to execute this query correctly:
mutation {createTableRecord(input: {
table_id: "pWRuu4qV"
title:"Title of record"
fields_attributes:[
{field_id: "assignee_field", field_value: [123456, 654321]}
{field_id:"short_text_field", field_value:"text here"}
]})
}
I added another field “short_text_field”, but it’s just for demonstration’s sake of how you would fill out multiple fields.
Note: In this example, “ {field_id: "assignee_field", field_value: [123456, 654321]} ” will add the users with the IDs 123456 and 654321 as the field assignees for this record. So 2 users will be added.
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.