Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Email Override is not working when using topics #4856

Closed
2 tasks done
vichustephen opened this issue Nov 16, 2023 · 2 comments
Closed
2 tasks done

🐛 Bug Report: Email Override is not working when using topics #4856

vichustephen opened this issue Nov 16, 2023 · 2 comments

Comments

@vichustephen
Copy link
Contributor

📜 Description

There is an issue when you try to override the email channel while triggering topics. The email text , sender name is not getting overridden. Instead it is still sending email using the template provided in the workflow

👟 Reproduction steps

  1. Create a workflow with one more steps. Then create one step for email. (configure the email provider before this step).
  2. Configure the email with default template and provide the necessary details.
  3. Now create a topic and some users
  4. Now trigger the workflow with the created topic and add override for email. You can add 'from' and 'text' parameter (we don't need 'to' parameter since we are triggering a topic).

👍 Expected behavior

The email must be delivered to the users who are in that topic with the overridden text data.

👎 Actual Behavior with Screenshots

The email is delivered to the users in that topic but the content is from the workflow template and is not overridden.

Here is the workflow template:
image

Here is the API trigger:

image

Here is the email I got:
image

Novu version

0.19.0

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

@vichustephen
Copy link
Contributor Author

vichustephen commented Nov 22, 2023

Hi @jainpawan21. It seems like this bug is not exactly a bug. To put it simply, the context of the issue i had was "not able to override the email content". My usecase is like this:

I have a workflow with one email channel step. I have a set of processes say 100 processes for which I need to send email to my clients. But ofcourse I cannot create 100s of workflow email templates. I would like to use one workflow and I will override the content based on the process. Am I missing something here ?.
I have gone through the code. The bug mentioned above is not a bug. Simple because the text override does not override the content for all email clients. There is supposed to be an override option for HTML. Because text content is only used for email clients that does not support html content.

I also would like to work on this html override feature or discuss about how to proceed and approach this. Please let me know I'm wrong or missing something here

@jainpawan21
Copy link
Member

Hi @vichustephen

Yeah you are correct. html property should also be there in overrides.
I see you are interested to contribute. Feel free to create a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants