MAKE
(ex-integromat)
Course #3 :
More advanced details on Make
Arrays
Bundle detailed description
Key (~label)
Item
value
Things to remember:
- An array is a list of items, order
Element of the array generated
- Array can be identified by [] at the
key end of the item name
Collection within array
value
- Array functions are most valuable
actions in operation cost, instead of a
standalone module
Key (~index)
Array
value
Inline functions : ARRAY
Things to remember:
There is always an contextual menu when mouse is
over a function
When a function is not correctly written, keys are
underline in red
Inline functions : ARRAY - part 1
FUNCTION DESCRIPTION INPUT EXAMPLE OUTPUT
Returns a primitive array containing values of a
complex array. Allows filtering values. Use raw variable
names for keys.
Things to remember:
Map is the most common function used in Make scenario for complex arrays
Inline functions : ARRAY - part 2
FUNCTION DESCRIPTION INPUT EXAMPLE OUTPUT
Concatenates all the items of an array into a string,
using a specified separator between each item.
Returns the number of items in an array.
Returns an array of a given object's or array's
properties. (most useful on a collection rather than an
array)
Inline functions : ARRAY - part 3
FUNCTION DESCRIPTION INPUT EXAMPLE OUTPUT
Returns a new array containing only selected items.
The first item in the array has an index of 0.
Merges two or more arrays into one array.
Verifies if an array contains the value.
Removes values specified in the parameters of an
array. Effective only in case of primitive arrays of text
or numbers
Inline functions : ARRAY - part 4
FUNCTION DESCRIPTION INPUT EXAMPLE OUPUT
Adds values specified in parameters to an array and
returns that array.
Shuffles (randomly reorders) elements of an array
Sorts values of an array. The valid values of the order
parameter are : “asc” , “desc”, “asc ci”, “desc ci”
Inline functions : ARRAY - part 5
FUNCTION DESCRIPTION INPUT EXAMPLE OUTPUT
Removes values specified in the parameters of an
array. Effective only in case of primitive arrays of text
or numbers
Returns the first element of an array.
Returns the last element of an array
Inline functions : ARRAY - part 5
FUNCTION DESCRIPTION INPUT EXAMPLE OUTPUT
Removes duplicates inside an array. Use the key
argument to access properties inside complex
objects.
To access nested properties, use dot notation. The
first item in an array is index 1.
Removes duplicates from an array
Inline functions : ARRAY - part 6
FUNCTION DESCRIPTION INPUT EXAMPLE OUTPUT
Converts an array containing objects with key-value
pairs into a collection
Converts a collection into an array of key-value
collections
Inline functions : ARRAY - part 7
FUNCTION DESCRIPTION INPUT EXAMPLE OUTPUT
Removes elements with the given keys from a
collection. Returns a collection with the remaining
elements. Useful when you want to pass a collection
to an API, which expects an exact number of
elements in the collection. Using this function, you
can make sure your collection meets the
requirements of the API.
Picks elements with the given keys from a collection.
Returns a collection that contains only the picked
elements. Useful when you want to pass a collection
to an API, which expects an exact number of
elements in the collection. Using this function, you
can make sure your collection meets the
requirements of the API.
Error handling
5 types of error handler
Things to remember:
There is a total of five directives that can be grouped into the following 2
categories based on whether a scenario execution should continue or not:
The following directives ensure that a scenario execution continues:
Resume allows you to specify a substitute output for the module with the
error and the scenario execution status is marked as a success.
Ignore simply ignores the error and the scenario execution status is
marked as a success
Break stores the input to the queue of incomplete executions and the
scenario execution status is marked as a warning.
On the other hand, if a scenario execution should be stopped, one of the following
directives need to be used:
Rollback stops the scenario execution immediately and marks its status
as an error
Commit stops the scenario execution immediately and marks its status as
a success
Rollback and Commit are useful when all modules are “ACID”(atomic,
consistent isolated, and durable)
3 error handler commonly used
Scenario debugging
Integromat DevTool (chrome extension)
Integromat DevTool - Pro tips
Things to remember:
DevTool is very useful for
cloning filter from a module
to another