Articles in this section

Reference resource aliases in hooks, custom forms, and connection routes

Once resource aliases are set up, you can reference them when creating any of the following:

Important

You must set your resource alias before referencing it. Resource aliases only apply to scripts and hooks that use supported JavaScript runtime (JSRT) functions.

Referencing aliases instead of specific resource IDs for connections, exports, imports, and flows reduces maintenance and enables portability.

Reference an alias in a hook

  1. Create or edit the script used for a hook.

  2. In the Script editor, click View aliases on the top right.

  3. Locate the alias for the appropriate resource.

    • To see more information about an alias, click … in the Actions column and then click View details.

  4. Click … in the Actions column and then click Copy alias.

  5. Paste the alias into the appropriate location in your script.

  6. If Auto preview is enabled or you click Preview, the alias should be resolved and the output of the invoked function should appear.

    5871367403163-Hook.png

Reference an alias in a custom form

Note

This feature requires Developer mode.

  1. Create or edit the custom setting and form.

  2. In the Form builder, click View aliases on the top right.

  3. Locate the alias for the appropriate resource.

    • To see more information about an alias, click … in the Actions column and then click View details.

  4. Click … in the Actions column and then click Copy alias.

  5. Paste the alias into the appropriate location in your form definition code.

  6. If Auto preview is enabled or you click Preview, the alias should be resolved and the output of the invoked integrator.io API function should appear.

    form.png
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.