Special Functions

Special functions are globally available functions available throughout the life of an integration.

keep

keep() Adds all provided arguments to the current integration namespace. Once kept, they can be accessed from throughout the life of the integration. The keyword given as a variable sets the variable on the integration.

a = ["list", "items"]
keep(a=a)

b, c = [], []
keep(test=b, c=c)

x = {"y": [], "z": []}
keep(**x)

debug

historize(value: any, label: str, capture_stack_trace: bool) -> None Creates a Run History Item with the specified variable and optional label.

a = ["SAMPLE"]
debug(a, label="keeping the a variable")

callint

callint(path_name: str, payload: Any) -> Any Used to call an integration from within the process of the currently running integration. Callint will return the integration output. Asynchronous integrations will run in a separate thread from the currently running integrations.

get_namespace

get_namespace() -> namespace Returns the current integration namespace. Useful for debugging purposes.

end

end(payload: any, status: any, headers: dict) -> None Immediately terminates the currently running integration, logging a failure with the provided status. Integration output is set to the provided payload, status, and headers.

create_file_lock

create_file_lock(lock_id, timeout: int) -> FileLock

Please refer to the python package filelock for more information regarding FileLock. Lock_id is the reference path to the file desired to create a lock on.

open_vault

open_vault(vault_name) -> Vault

Attempts to open a vault for a given name.

Get data from vault

Modify data in an existing vault

map_value

map_value(valuemappingset_name: str, value:Any) -> str Applies a Value Mapping Set to a provided value. The value mapping set must be connected to the current integration.

calladapter

calladapter(system: str, service_name: str, label: str, payload: Any, sub_requests: Any) -> AdapterResponse Makes a call to a configured adapter from within the current integration process.

import_helper

imports the specified helper function. Please see the Helper Functions for further information on the specific helpers. This imports the helper function to the namespace for the integration, allowing access to the helper in every subsequent hook.

humanize

Attempts to regex match a field name to the Message Substitution Name for the a given integration component.

open_glyuefile

See open_glyuefile for more information.

list_files

list_files() -> List[str]

returns a list of str GlyueFile names for the currently running .

Last updated

Was this helpful?