title: How to set links dynamically in Sendgrid v3 using javascript (node.js)
body: <p>I am trying to add a unique link to a sendgrid template, but so far I have had no luck. The button in the sendgrid is the following: </p>
  
  <pre><code>&lt;a href="-org_url-" target="_blank"&gt;Accept&lt;/a&gt;
  </code></pre>
  
  <p>I have also tried: </p>
  
  <pre><code> &lt;a href="{{org_url}}" target="_blank"&gt;Accept&lt;/a&gt;
  </code></pre>
  
  <p>My javascript function looks like this:</p>
  
  <pre><code>const msg = {
          to: process.env.EMAIL_TO,
          from: process.env.EMAIL_FROM,
          templateId: process.env.SENDGRID_TEMPLATE_ID,
          dynamic_template_data: {
              org_url: `${process.env.ORG_URL}/${key}`,
          },
          substitutions: {
              '-org_url-': `${process.env.ORG_URL}/${key}`
          }
      };
  </code></pre>
  
  <p>Upon checking the sent email, the href field is either empty or only has -org_url- in it. How could I pass it the proper link? Thank you!</p>