prabhu pp
NNovu
•Created by prabhu pp on 2/16/2024 in #💬│support
How use dynamic date value as condition value
4 replies
NNovu
•Created by prabhu pp on 2/14/2024 in #💬│support
Can i able to trigger event to all subscribers based on their custom key value
I have checked broadcast , it worked well , but it has limitation 100 per request,
Any other solution , please let me know ?
3 replies
NNovu
•Created by prabhu pp on 2/14/2024 in #💬│support
can i able to achieve this using topic?
I have one scenario ,
In topic i have added 3 subscribers and triggered
after some two minute one more subscriber added to same topic,
but if i trigger topics it should trigger only newly added subscribers
How can i make this?
6 replies
NNovu
•Created by prabhu pp on 2/14/2024 in #💬│support
I have created topic added subscribers, but if i trigger event, getting error
Error :
==========
ERROR (41): Unexpected error has occurred when triggering event
worker | serviceName: "@novu/worker"
worker | serviceVersion: "0.23.0"
worker | platform: "Docker"
worker | tenant: "OS"
worker | transactionId: "c787a708-0f88-4027-9672-a103970ca15f"
worker | environmentId: "65c1c8f84a82012402fb5528"
worker | organizationId: "65c1c8f84a82012402fb5521"
worker | context: "TriggerEventUseCase"
worker | organization: "65c1c8f84a82012402fb5521"
worker | triggerIdentifier: "testing-push-notification"
worker | userId: "65c1c8bd4a82012402fb5518"
worker | error: {
worker | "response": {
worker | "message": "subscriberId under property to is not configured, please make sure all subscribers contains subscriberId property",
worker | "error": "Bad Request",
worker | "statusCode": 400
worker | },
worker | "status": 400,
worker | "options": {},
worker | "message": "subscriberId under property to is not configured, please make sure all subscribers contains subscriberId property",
worker | "name": "ApiException"
worker | }
Topic created - {"data":{"_id":"65cc94a74a82012402fbb18d","key":"topic_for_payment"}}
Success message after adding subscribers to topic - {"data":{"succeeded":["3945395","111","222","333"]}}%
Trigger payload :
$postData = '{ "name": "testing-push-notification", "to": [{ "type": "topic", "topicKey": "topic_for_payment" }], "payload": { } }';
Trigger payload :
$postData = '{ "name": "testing-push-notification", "to": [{ "type": "topic", "topicKey": "topic_for_payment" }], "payload": { } }';
23 replies