Using Function Nodes
You often need to send dynamic parameters and values to the node or construct the payload when submitting data to the Meraki API. By making use of the function nodes, you can define the msg
properties to be sent to the node.
This flow uses the function nodes to build the parameters required for each of the Meraki operations.
flow.json
Splitting Arrays
Instead of writing multiple function nodes, use the split node to convert an array of objects into unqiue msg
objects for each item in the array.
We can provision network clients from a JSON list and split the client list into individual requests.
A function node creates an array of client objects with their required parameters.
The split node will send a msg
for each item in the array. This means that a client object will be sent to the provisionNetworkClient
node, one after another. A limit of 3 msg/s was also put inline to respect the API rate limit.