# Can you distinguish Sandbox vs Production in a flow?

**URL:** <https://connective.celigo.com/t/can-you-distinguish-sandbox-vs-production-in-a-flow/6165>\
**Category:** Integrator.io\
**Tags:** transformation, environment, javascript\
**Created:** [March 27, 2026, 12:02pm UTC](https://connective.celigo.com/t/can-you-distinguish-sandbox-vs-production-in-a-flow/6165 "2026-03-27T12:02:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alandepew](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/alandepew/32/7274_2.png) [@alandepew](https://connective.celigo.com/u/alandepew)\
**Post date:** [March 27, 2026, 12:02pm UTC](https://connective.celigo.com/t/can-you-distinguish-sandbox-vs-production-in-a-flow/6165/1 "2026-03-27T12:02:34Z")

</div>

I have a Javascript transformation I’m working on in sandbox working with Jira Assets. Some Asset IDs are different between my Jira Sandbox and Jira Production. I’m trying to see if there is a way to distinguish which Celigo environment I’m in so I can pass through the correct values if it’s running in sandbox or prod. Right now I’m doing this via an environment variable that is set manually, but wanted to see if there was a way to tell automatically via some type of helper function.

See below for what I’m trying to accomplish:

> function transform(options) {  
> const record = options.record;  
> const environment = 'sandbox';  
> const prodWorkspaceId = "0a12b3c4-56d7-8901-e2fg-3hijklm4n56p";  
> const sbxWorkspaceId = "9z87yx6w-vu5t-4321-09s8-76r54qp3210n";  
> const workspaceId = environment === 'sandbox' ? sbxWorkspaceId : prodWorkspaceId;
> 
> const customfield\_10117 =[];
> 
> if (record.Has\_Boolean\_\_c) {  
> const objectId = environment === 'sandbox' ? "4451593" : "4604317";  
> customfield\_10117.push({  
> "workspaceId": workspaceId,  
> "id": `${workspaceId}:${objectId}`,  
> "objectId": objectId  
> });  
> }
> 
> record.customfield\_10117 = customfield\_10117;
> 
> }

---

<div class="post-metadata">

**Author:** ![basvanditzhuijzen](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/basvanditzhuijzen/32/4422_2.png) [@basvanditzhuijzen](https://connective.celigo.com/u/basvanditzhuijzen)\
**Post date:** [March 27, 2026, 3:30pm UTC](https://connective.celigo.com/t/can-you-distinguish-sandbox-vs-production-in-a-flow/6165/2 "2026-03-27T15:30:24Z")

</div>

You can store that kind of environment-specifc data in an integration setting, and set it to the correct value in each tile. That way you don’t need to update it every time you update your scripts from sandbox to prod.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/a/ad9f97e8f6bfda8ad9323c92a018b766d33526f7.png)

In the script the settings can be accessed through the options object, for example options.settings.integration.myObjectId

[https://docs.celigo.com/hc/en-us/articles/360045461272-Create-custom-settings-access-them-in-integrator-io-forms#create-custom-settings-access-them-in-integrator-io-forms-0](https://docs.celigo.com/hc/en-us/articles/360045461272-Create-custom-settings-access-them-in-integrator-io-forms#create-custom-settings-access-them-in-integrator-io-forms-0)
