Answered

How can I use company ID as a variable in a URL in an email?

  • 30 March 2021
  • 1 reply
  • 109 views

For example, I want to have the URL https://onemetric.io/{{ value of company _id }}/billing/whatever, where company_id unfolds into the UUID.

Thanks

icon

Best answer by Eric Fitz 1 April 2021, 11:30

View original

1 reply

Userlevel 1

Hey @samori​, when you're composing your email, you can choose our variable selector when adding a hyperlink. This will allow you to insert a dynamic value for a company attribute.Screen Shot 2021-04-01 at 10.22.43One note of caution - if you are inserting this in an email that is not included within a Series, and it is sent to a user who is part of multiple companies, they will receive one copy of the email for every company of which they are part.

 

To avoid this, I would recommend creating a Series for this message and using the company prioritisation feature of Series.

 

Let me know if you have any follow-up questions!

Reply