Aliases give connections, exports, imports, flows, and lookup caches a stable name that you use in scripts instead of a resource ID. When you clone a flow or integration, or move it to another account, scripts that reference an alias keep working without edits. This article is for builders and developers who maintain scripts, and it applies to every organization that uses integration lifecycle management (ILM).
Why use aliases
If a script refers to a connection by its ID, you have to change the script whenever a clone uses a different connection. If the script refers to an alias such as netsuite-connection2_prod, you don't. Aliases also streamline moving an integration to another account, for example when you download it as a zip file and install it elsewhere, or when you create a template. As you pull and merge changes between clones in ILM, aliases help your scripts work as expected.
Alias scopes
You can create aliases at two levels:
- Integration-level aliases are available to every flow in the integration as inherited aliases. You manage them on the integration's Aliases page.
- Flow-level aliases apply to one flow. You manage them in the flow settings.
A flow-level alias takes precedence over an integration-level alias with the same Alias ID. For example, if ns_prod is defined for both the integration and the flow, the flow uses the resource in the flow-level definition and ignores the inherited alias.
Users with Manage access to an integration can create aliases. For details, see Manage access to an integration.
Alias restrictions
- You can't create aliases for standalone flows. A flow must belong to an integration, even if you create only flow-level aliases for it.
- You can create an alias for an import or export only if its connection is registered with the integration. For details, see Registered with the integration.
- When you clone a flow, its flow-level aliases for connections, imports, and exports are cloned too. Aliases that point to other flows aren't cloned.
- After you create an alias, you can't delete the resource it points to until you delete the alias. An error message appears if you try. The same rule applies to deregistering a lookup cache from an integration.
- You can't remove a flow from an integration while any alias exists for it. To make the flow standalone, delete its aliases first.
When you register a lookup cache with an integration, integrator.io creates an alias for it automatically. See Register lookup caches with an integration.