Is there a formula function or global variable ava...
# ask-stanley-ai
a
Is there a formula function or global variable available to saved search result columns that indicates whether the search is being run in a sandbox environment or a production environment?
c
AI generated answer (using internal Slack threads):
Based on the conversations, there is no direct formula function or global variable available in saved search result columns that indicates whether the search is being run in a sandbox environment or a production environment. However, you can use relative URLs in your formulas to dynamically adapt to the environment. For example, you can use a formula like this:
Copy code
'<a href=\"/app/common/entity/vendor.nl?id=' || {internalid} || '\" target=\"_blank\">View</a>'
. This way, the URL will work regardless of whether it's a sandbox or production environment. In addition, the
N/runtime
module in SuiteScript can be used to determine the environment type (sandbox or production). However, this is not directly applicable to saved search result columns. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.864196777
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831848145
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828186035
Please provide your feedback on this answer.