Forum Academy Marketplace Showcase Pricing Features

SendGrid...Trying to create a Button in an Email template that links to a specific order

Hi All
I’m trying to create a button (or a link) in a SendGrid email that will enable the recipient of that email to go straight to that order in my app directly from their email.
I can add a Variable to the SendGrid API Workflow that contains the Unique Order Reference that identifies the order but can someone tell me how I implement that on the button in the email so that the User can jump straight to that order when they click the button/link in whatever email client they’re using? Maybe it’s just a question of knowing what URL to add so that I can append the Unique Order Reference into it?
Many thanks in advance for any help

Just add it as a query parameter in the URL (e.g.

Or, better still, if your order page has a content type of Order (or even if it doesn’t) just include the unique ID in the path (e.g.

1 Like

Many thanks Adam. Can I just ask (this seems a really silly question - apologies) does my App have to be “Live” for this to work? I keep getting a Privacy Error


is this because I haven’t gone live with my app yet? If so, is there a way I can write the link in “test mode?”

No, your app doesn’t need to be live.

You need to add /version-test to the URL — to have it work in development.

A handy little trick is to use the Website Home URL

Many thanks both for this information. I feel I’m getting there but for some reason whatever method I use for entering the URL, “URL2335” gets inserted in front of it so it resolves to

which then results in a privacy error. Any ideas on why this might be happening?