Aaron McCausland
10/21/2025, 7:12 PMCeligo AI
10/21/2025, 7:13 PMAI generated answer (using internal Slack threads):Based on the conversations, it appears that there isn't a direct way to determine if the Advanced PDF Template is running in a Production or Sandbox environment using Freemarker interpolation. However, a workaround could be to create a custom field at the company or subsidiary level that stores the environment type (Production or Sandbox). This field can then be accessed in the Advanced PDF Template using Freemarker. Here's a simple example of how you might use this in your template:
freemarker
<#if record.custbody_environment_type == "Production">
<img src="production_image_url" />
<#else>
<img src="sandbox_image_url" />
</#if>
In this example, custbody_environment_type is the custom field that stores the environment type. If the environment is Production, it uses the production image URL, otherwise, it uses the sandbox image URL.
Remember to set the value of this custom field appropriately in each of your environments.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/21/2025, 7:13 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823486447
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818908751
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818481565
Celigo AI
10/21/2025, 7:13 PM