Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleExample
Code Block
logger.log('Hello world!');
Code Block
return arr;
Note

Please note that following values will be converted to null and logged as null then:

  • undefined

  • NaN

  • Infinity

  • '' - empty string

myVault

myVault is a package which contains methods for working with collections of keys-value pairs. All methods are grouped by access level type:

...

There are myVault methods which you can call in js-code:

Description

Workflow level

Account level

Writes key and value into myVault dictionary

set

setGlobal

Writes key and value into myVault dictionary on the workflow complete event

setOnComplete

setGlobalOnComplete

Reads value from myVault dictionary by specified key

get

getGlobal

Removes key-value pair from myVault dictionary by specified key

remove

removeGlobal

Determines whether the myVault dictionary contains the specified key

contains

containsGlobal

myVault.set

Writes key and value into myVault dictionary belonged to the workflow.

...

Table of Contents
minLevel3
maxLevel3
includesession.*

session

...

session.vault is an object of keys-value pairs which is stored for each workflow running. session is empty when new run is started (from first block) and is passed to next blocks till last. If you start running not from 1st block, for example from 3nd block, then session will be copied from 2nd block of previous running.

session.vault

session.vault is an object of keys-value pairs which was set by myVault.setOnComplete() method and which will be moved into myVault on workflow complete event.

...

Expand
titleExample

let v = getVariables();

let url = `quin/Sections?apikey=${v.apiKey}`;

let sections = await api.get(url);

getWorkflowVariables()

Returns array of workflow variables. No parameters.

Expand
titleExample

let v = getWorkflowVariables();

let url = `quin/Sections?apikey=${v.apiKey}`;

let sections = await api.get(url);

...