PF
10/16/2024, 7:34 PMCeligo AI
10/16/2024, 7:35 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** Yes, you can create a hyperlink field that shows a different value for the sandbox and production environment. However, it's important to note that any hard-coded URLs won't adjust for being included in the sandbox. To manage this, you can use relative URLs instead of absolute URLs. Relative URLs are adaptable and will work across different environments (Dev, Sandbox, Production). For instance, if you have a Suitelet or a client script, you can use the
url.resolveScript
function to generate a URL that is relative to the environment. Similarly, for managing file cabinet URLs, you can use Form.clientScriptModulePath
instead of Form.clientScriptFileId
.
If you are trying to add a hyperlink to a specific field across the whole NetSuite, you can create a field with the field type “hyperlink”. This is available out of the box. However, changing the display value (like customer names) would require scripting.
Remember, if you are creating a hyperlink that points to specific records, searches, etc., you may need to manually adjust the URL to point to the correct environment (sandbox or production).Celigo AI
10/16/2024, 7:35 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829651654
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82181251
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821270108
Celigo AI
10/16/2024, 7:35 PM