Includes
constants_json
3min
introduction the constants tag, automatically included at the top of all siteglide pages and page templates gives access to several useful variables within that page however, some liquid files, like automations (including email notifications), don't support a platformos feature called exports which the constants include uses to give these variables scope in the page as a result, the constants include isn't fully supported in these settings instead, we've provided a similar alternative constants json which you can use in automations reliably example liquid {% function constants = "constants json" %} {{constants company information}} {{constants integrations }} {{constants currency map}} not currently supported as transactional emails are sent asynchronously, it's not straightforward to implement the current user and is logged in features of constants in the same way so they will not be currently supported we may in future add alternatives by finding the details of the user who was logged in when the automation was queued other use cases you can use this function in pages, however, be aware it could reduce performance if the page already contains the constants include simply by duplicating the same functionality