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

Unable to find or use Template Ids #297

Closed
faizaankhan opened this issue Jun 28, 2018 · 5 comments
Closed

Unable to find or use Template Ids #297

faizaankhan opened this issue Jun 28, 2018 · 5 comments
Labels
difficulty: unknown or n/a fix is unknown in difficulty status: help wanted requesting help from the community type: question question directed at the library

Comments

@faizaankhan
Copy link

I am using a trial account and currently setting up things with sendgrid. [RAILS5, RUBY 2.3.3]

While trying to send emails using a custom template, I was unable to find the template id, there's no such place where I could find it easily, though I looked up into the URL and that was having an id similar to my requirement I was searching for, when used it throws SMTP API Error, and I received the mail below.

The template id must be a valid template id for your account.
You provided 1b656da9-6864-463e-8c1a-e0491f900b2f

Please tell me where to find the working template id. also, I am unable to figure out that after doing all sender authentication etc, I am still getting my mails in spam.

P.S.: It is a Marketing Custom Template

@thinkingserious
Copy link
Contributor

Hello @faizaankhan,

This SDK supports transactional templates, for which the documentation can be found here.

With Best Regards,

Elmer

@thinkingserious thinkingserious added status: help wanted requesting help from the community type: question question directed at the library difficulty: unknown or n/a fix is unknown in difficulty labels Jul 3, 2018
@vijeetgv
Copy link

vijeetgv commented May 16, 2019

@faizaankhan marketing templates are different from transactional templates. On the dashboard go to Templates -> Transactional (direct link if you're logged in: https://sendgrid.com/dynamic_templates ) and create a template there. Then it shows template id right below the title of the template above the list of versions. You can also copy it from the url.

@FrenchMajesty
Copy link

FrenchMajesty commented Mar 30, 2021

Running into the same issue. This is very poorly documented. @thinkingserious

As of 2021 there is only 1 section for templates on the website and this is what it displays. The message clearly indicates that this template ID is the one to be used for API calls..

Screen Shot 2021-03-30 at 6 55 13 PM

However attempting to use this ID in the SDK will give you a 400 error with the message:

"message":"The template_id must be a valid GUID, you provided 'insertTemplateIdHere'

The way I was able to get my emails to go out is to go to edit my template, pick a version, and then from the URL, grab what looks like to be a GUID and provide that value as the template_id.

That's how you will be able to get something sent successfully. Leaving this here for future Googlers like me who land here

@SaiOduri
Copy link

@FrenchMajesty This worked for me! Thanks!!

@philmitchell
Copy link

The UI is pretty janky, but after logging out and logging back in, I found my template had an "INACTIVE" label on it. I was able to click the label (I think) and select "Make active". After that, the listed template ID (d-etc.) worked.

It now shows an "ACTIVE" label, but I no longer see any UI that lets you toggle active/inactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: unknown or n/a fix is unknown in difficulty status: help wanted requesting help from the community type: question question directed at the library
Projects
None yet
Development

No branches or pull requests

6 participants