-
Notifications
You must be signed in to change notification settings - Fork 780
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
substitutions don't work in transactional templates #638
Comments
@MaciejKrawczyk Have you tried using Ex: Not sure how you'd do multiple wrappers at once this way, but I was able to get subs working with this version by not specifying the wrappers in the substitution attribute. My subs look like |
It works. Thank you! |
Thanks for jumping in to help @kmcurry! I'm glad you are up and running @MaciejKrawczyk! |
This should be definitely put in the README! Cost me 2hrs to figure this out! |
That's no good :( Does this documentation help? If so, could you point me where you first looked for help so I can make sure we have a clear link there? Thanks! With Best Regards, Elmer |
@thinkingserious Yes. This doc did help a lot. However, since I came from the official website, where the substitution keys should include the wrapper, I didn't pay too much attention to the use cases. |
Hi @LASkuma, When you say you came from the official website, could you please let me know what URL you are referring to? Thanks! |
Hi @thinkingserious, |
Thanks @LASkuma! That's really helpful feedback. I'm not quite sure on the solution though. Those documents are for those who wish to interact with our API directly vs. use one of our helper libraries. Earlier you mentioned that we should include this documentation in the README. Do you mean here? Should we specifically call out the substitution use case there? Thanks again for your help! With Best Regards, Elmer |
This should definitely be on the readme. I tried everything, I read all docs on the SendGrid api reference , everything that's on GitHub (I thought), contacted support and I would be making my own api wrapper if not for @kmcurry I think it would be much more easier and less confusing if the helper library would work exactly like the API itself (see my code at the beginning of the thread). |
Thanks @MaciejKrawczyk, This is very good feedback and I've added this to our team's backlog for a deeper dive. We will provide updates on this thread. Thanks! With Best Regards, Elmer |
Is this done? I'm having the same issue; |
Hi @sriharrsha, Have you tried @kmcurry's suggestion? |
Not yet. I will update if it works or not soon. |
To everyone as desperate as me yesterday: in v3 API you need to use Then use |
@tkafka oh my god! thanks for this man, been pulling my hair out on this for the past 2 days. |
@tkafka Thanks a lot! This is so frustrating! Took me 3hrs of my day... Here is the entire code in case somebody is looking for the same:
The documentation of sendgrid is horrible to say the least. |
Hello Everyone, Please see this issue for progress. We are currently working on the update for C#, then Java, then this SDK is right after that. Thanks for your patience and my apologies for the delay. With Best Regards, Elmer |
Hah, For other typescript users - Create file
|
Thank you @xduseko ! |
Issue Summary
Substitutions don't work when using this library. It works when using curl.
Steps to Reproduce
I'm also attaching a screenshot of the template in SendGrid editor and the email I get
Technical details:
The text was updated successfully, but these errors were encountered: