N
Novu3mo ago
MrM

Change variables in override section

I'm using an SMS provider, through the generic SMS integration. The provider expects the SMS text to be sent with the variable 'msg', however the variable that Novu sends is called 'content'. How can I override this and set it to 'msg'?
22 Replies
Pawan Jain
Pawan Jain3mo ago
@MrM Unfortunately, it is not possible to customize this behaviour
MrM
MrMOP3mo ago
Hi @Pawan Jain So does this mean this specific provider/integration doesn't work?
Pawan Jain
Pawan Jain3mo ago
@MrM Yes you are correct as we map these fields internally with all the providers
MrM
MrMOP3mo ago
So if I use a "msg" variable in the override section, why doesn't that get sent?
Pawan Jain
Pawan Jain3mo ago
@MrM here the issue is generic provider. We map content field to respective fileds in all providers. here you are using your own provider, so it is not working
MrM
MrMOP3mo ago
@Pawan Jain I've now switched to BulkSMS
MrM
MrMOP3mo ago
But seeing this error:
No description
MrM
MrMOP3mo ago
Is the integration definitely working?
Neng
Neng3mo ago
@Pawan Jain please let us know on this!
MrM
MrMOP3mo ago
@Pawan Jain @Dima Grossman I've tried adding BulkSMS as a generic provider to see if this solves the issue. But I get an error because Novu is sending the message body with a "content" variable name, whilst BulkSMS only accepts a "body" variable name.
No description
MrM
MrMOP3mo ago
Without hearing the cause of this issue, in my opinion, it is quite interesting that Novu offers this feature if there are so many issues with it...
Pawan Jain
Pawan Jain3mo ago
@MrM Could you please try this code
"overrides": {
"providers": {
"generic-sms": {

"content": "custom content",
"customData": {
"key": "value"
},
"msg": "this is actual message",
"body": "this is body message"
}
}
}
"overrides": {
"providers": {
"generic-sms": {

"content": "custom content",
"customData": {
"key": "value"
},
"msg": "this is actual message",
"body": "this is body message"
}
}
}
MrM
MrMOP3mo ago
Nope, the SMS step is now sending, but it is using our default SMS provider
Pawan Jain
Pawan Jain3mo ago
I am confused, are not you using genetic provider now?
MrM
MrMOP3mo ago
@Pawan Jain can I DM you and share our configuration settings?
Pawan Jain
Pawan Jain3mo ago
Yeah sure Please share
Neng
Neng3mo ago
Thanks @Pawan Jain i take it you received it. Your prompt support is critical as we have been trying to find a method for a long time and beed a solution!!
Novu_Bot
Novu_Bot3mo ago
@Neng, you just advanced to level 1!
Pawan Jain
Pawan Jain3mo ago
MrM has shared few images and code snippets, I am in touch with MrM in personal message
Neng
Neng3mo ago
@Pawan Jain please can you update ne what the status is with these integrations that you say you support but bever seem to work! This is noe bery time sensitive and we have been trying to find a working solution for months
Pawan Jain
Pawan Jain3mo ago
@Neng Apologies for the delay in response As per discussion with @MrM, we have decided to fix the `Not found`` issue with our own bulk sms provider integration PR : https://github.com/novuhq/novu/pull/8791 Will be fixed EOD today @MrM and @Neng Could you please try to use BulkSMS provider now? Above PR is deployed
Pawan Jain
Pawan Jain3mo ago
@mgood2707

Could you please update if you are able to use bulk sms provider?

Did you find this page helpful?