MCPcopy Index your code
hub / github.com/sendgrid/sendgrid-nodejs / setTemplateId

Method setTemplateId

packages/helpers/classes/mail.js:161–167  ·  view source on GitHub ↗

* Set template ID, also checks if the template is dynamic or legacy

(templateId)

Source from the content-addressed store, hash-verified

159 * Set template ID, also checks if the template is dynamic or legacy
160 */
161 setTemplateId(templateId) {
162 if (this._setProperty('templateId', templateId, 'string')) {
163 if (templateId.indexOf('d-') === 0) {
164 this.isDynamic = true;
165 }
166 }
167 }
168
169 /**
170 * Set batch ID

Callers 1

fromDataMethod · 0.95

Calls 1

_setPropertyMethod · 0.95

Tested by

no test coverage detected