How to trigger bulk notifications using novu typescript sdk

hey everyone, i need help is there any way to trigger notification like email/inapp to multiple user simultaneously using novu sdk I have attached the current sdk usage,
import { Novu } from "@novu/api";

const novu = new Novu({ secretKey: "<YOUR_SECRET_KEY_HERE>", });

async function run() {
const result = await novu.trigger({
to: {
subscriberId: "subscriber_unique_identifier",
firstName: "Albert",
lastName: "Einstein",
email: "albert@einstein.com",
phone: "+1234567890",
},
workflowId: "workflow_identifier",
payload: {
comment_id: "string",
post: {
text: "string",
},
},
overrides: {
email: {
bcc: "no-reply@novu.co",
},
},
});
}

run();
import { Novu } from "@novu/api";

const novu = new Novu({ secretKey: "<YOUR_SECRET_KEY_HERE>", });

async function run() {
const result = await novu.trigger({
to: {
subscriberId: "subscriber_unique_identifier",
firstName: "Albert",
lastName: "Einstein",
email: "albert@einstein.com",
phone: "+1234567890",
},
workflowId: "workflow_identifier",
payload: {
comment_id: "string",
post: {
text: "string",
},
},
overrides: {
email: {
bcc: "no-reply@novu.co",
},
},
});
}

run();
@Pawan Jain @Support @Community Support It would be really great if you can help me with this Thank you in advance everyone!!
4 Replies
Novu_Bot
Novu_Bot2w ago
@olivemonk, you just advanced to level 2!
Pawan Jain
Pawan Jain2w ago
you can use topics for this usecase
https://docs.novu.co/platform/concepts/topics
olivemonk
olivemonkOP2w ago
ok thanks, I will look into it @Pawan Jain is there any limit to how many topics we can create?
Pawan Jain
Pawan Jain2w ago
Currently, we don't have any limit on number of topics

Did you find this page helpful?