You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am based on this demo: https://github.com/sendgrid/sendgrid-java/blob/master/USE_CASES.md#transactional-templates
But, get this error result: Request returned status Code 400Body:{"errors":[{"message":"Substitutions may not be used with dynamic templating","field":"personalizations.0.substitutions","help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.personalizations.substitutions"}]}
Activity
thinkingserious commentedon Jul 26, 2018
Hello @xiandingwang,
If you are using the latest versions of our templates, please see this issue.
That example still works with our legacy templates.
With Best Regards,
Elmer
pdtyreus commentedon Jul 29, 2018
I worked around this for now by extending
Personalization.then you can use it with the Helper
I think it would be trivial to submit a PR to update
Personalizationbut I don't have time to review the CLA right now.thinkingserious commentedon Jul 30, 2018
Hi @pdtyreus,
Thanks for helping out!
If you have a moment, a code review on #449 would be most appreciated :)
With Best Regards,
Elmer
amalajith commentedon Aug 21, 2020
Easier way without needing extra class. Import the Personalization class in com.sendgrid.****