Versions Compared

Key

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

...

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

Parameters

key-the key of the element to set.

...

Writes key and value into Global myVault dictionary belonged to the account.

Parameters

key-the key of the element to set.

...

This method differs from set method in “saving into myVault is deferred” condition and will be executed on workflow complete event.

Parameters

key-the key of the element to set.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let value = fx.utcNow();
await fx.forEach(keys, async(key) => { 
    await myVault.setOnComplete(key, value); 
});

\uD83D\

...

uDCCB Related articles

Please also see session.vault by this link

...

This method differs from setGlobal method in “saving into Global myVault is deferred” condition and will be executed on workflow complete event.

Parameters

key-the key of the element to set.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let value = fx.utcNow();
await fx.forEach(keys, async(key) => { 
    await myVault.setGlobalOnComplete(key, value); 
});

\uD83D\

...

uDCCB Related articles

Please also see session.vaultGlobal by this link

...

Reads value from myVault dictionary by specified key.

Parameters

key-the key of the element to get.

...

Reads value from Global myVault dictionary by specified key.

Parameters

key-the key of the element to get global value.

...

Removes key-value pair from myVault dictionary by specified key.

Parameters

key-the key of the element to get global value.

...

Removes key-value pair from Global myVault dictionary by specified key.

Parameters

key-the key of the element to get global value.

...

Determines whether the myVault dictionary contains the specified key

Parameters

key-the key of the element to get global value.

...

Determines whether Global myVault dictionary contains the specified key

Parameters

key-the key of the element to get global value.

...

Expand
titleExample #2

// the block has a dependency with 1 block, which response is an array of objects with 3 properties:

// API_key, employees and timepunches

let employees = fx.getEntityFromSource(Datasource[0], “employees“, ["API_key"]);

let timepunches = fx.getEntityFromSource(Datasource[0], “timepunches“, ["API_key"]);

\uD83D\

...

uDCCB Related articles

Please see documentation of fx.getEntityFromSource by this link

...

\uD83D\

...

uDCCB Related articles

You can know how to start workflow running by this link

...