N
Novu8mo ago
koala1101

send array to trigger

Hi, can I send an array of users to the trigger instead of just one?
5 Replies
Pawan Jain
Pawan Jain8mo ago
Yes send array in to field
to: [
{
subscriberId: '111',
email: 'john.doe@domain.com',
firstName: 'John',
lastName: 'Doe',
phone: '+13603963366',
},
{
subscriberId: '222',
email: 'john.doe@domain.com',
firstName: 'John',
lastName: 'Doe',
phone: '+13603963366',
},
]
to: [
{
subscriberId: '111',
email: 'john.doe@domain.com',
firstName: 'John',
lastName: 'Doe',
phone: '+13603963366',
},
{
subscriberId: '222',
email: 'john.doe@domain.com',
firstName: 'John',
lastName: 'Doe',
phone: '+13603963366',
},
]
koala1101
koala11018mo ago
thx a lot
Novu_Bot
Novu_Bot8mo ago
@koala1101, you just advanced to level 1!
Pawan Jain
Pawan Jain8mo ago
or you can use
to : ["subscriberId1", "subscriberId2"]
to : ["subscriberId1", "subscriberId2"]
or you can use topics