-
Notifications
You must be signed in to change notification settings - Fork 782
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
Dynamic Template Data is not showing! #729
Comments
I'm having the same issues. I've spent already like 4 hours. What's going on? |
@kayson123 I did a last change and it was updating to the last release #703 (comment) Now is working for me. Try doing that. |
Hello @kayson123, Have you upgraded the SDK to v6.3.1? Also, you may try Thanks! With Best Regards, Elmer Thanks for jumping in to help! |
It looks like the This works for me:
|
Above poster is correct. There is a bug either in the library code or typescript definitions.
This would suggest that you can pass |
With a fresh install of sendgrid 6.4.0, this issue is still present. The dynamic template data, is only working if passed with |
I'm facing the same issue. Are the typescript definitions for the library incorrect? Can someone please respond. |
I spent 2 hours trying to debug this issue only to realize that the issue occurs on a BCC'ed email. |
Is there any workaround to this issue? I'm facing the same problem. |
@CShigaki Could you provide sample code and template that's not working? And what library version are you using? |
@childish-sambino I'm actually using a PHP library and the problem only occurs as @coolnalu said. When setting a BCC through the sendgrid interface (https://app.sendgrid.com/) instead of setting it with code, the email sent to the BCC does not receive (or apply, I don't know yet) the dynamic template data. I have no idea why this happens but I solved it by setting the BCC via code. |
Yup, I'm seeing the same issue. The To and Bcc get the email, but the dynamic template is not populated in the Bcc when using the global Bcc account setting. Unfortunately, that's not something that we can resolve in this helper lib so best to create a support ticket to request that this bug be fixed in the backend. |
Hello @kayson123, Thanks for submitting a GitHub issue! We are very sorry that you are running into this problem. In order to better serve you, as this does not present itself as a library specific issue, we would like to ask that you reach out to our support team at https://support.sendgrid.com. Thank you! SendGrid DX Team |
The solution that worked for me is placing the dynamic_template_data inside the personalization object in the exact way seen below:
|
template html code:
<div style="text-align: center;"><span style="font-size:28px;"><strong><p>Code: {{voucherCode}}</p></strong></span></div>
Nodejs Code:
When I received the email, the voucherCode is empty!
The text was updated successfully, but these errors were encountered: