How Do I Create > 1 personId in taskTarget?

I tried sending more than one personId to a taskTarget (because two customer contacts participated). I tried a string ("personId": "ab61db1c-3158-4042-a78a-639ff9aaa9a8, 973a5514-b183-4766-94f4-298153e73b4f") and an array "personId": ["ab61db1c-3158-4042-a78a-639ff9aaa9a8","973a5514-b183-4766-94f4-298153e73b4f"] The former led to a 400 error. The latter just resulted in the personId being set to null. What do I do? I get the impression I'll have to start looking into GraphQL to get this to work. Not a developer though, so not so keen on doing this just yet.
2 Replies
BigKahuna
BigKahunaOP3mo ago
For all those who might stumble upon the same issue, here's the solution: https://github.com/twentyhq/core-team-issues/issues/1199 Or in code:
[
{
"taskId": "8408fc66-8c5b-43c7-91be-e28a4f38ad9e",
"personId": "ab61db1c-3158-4042-a78a-639ff9aaa9a8"
},
{
"taskId": "8408fc66-8c5b-43c7-91be-e28a4f38ad9e",
"personId": "973a5514-b183-4766-94f4-298153e73b4f"
}
]
[
{
"taskId": "8408fc66-8c5b-43c7-91be-e28a4f38ad9e",
"personId": "ab61db1c-3158-4042-a78a-639ff9aaa9a8"
},
{
"taskId": "8408fc66-8c5b-43c7-91be-e28a4f38ad9e",
"personId": "973a5514-b183-4766-94f4-298153e73b4f"
}
]
GitHub
Sharing a video to self hoster · Issue #1199 · twentyhq/core-team...
Screen.Recording.2025-07-04.at.16.54.48.mov
BigKahuna
BigKahunaOP3mo ago
@prastoin Thanks again for the effort ❤️

Did you find this page helpful?