List Helpers [Connector Reference]

Overview

The 'List Helper' connecter on Tray allows you to perform quick manipulations to an array of data.

Configuration

Operation Description
Add Item to List Adds an item to the end of a list.  If this list doesn't already exist, then a new list will be returned with just the new item.
Add Multiple Items to List Adds multiple items to the end of a list.  If this list doesn't already exist, then a new list will be returned with just the new items.
Chunk Split a list of items into lists of a fixed size.  If the list can't be split evenly, the final chunk will be the remaining elements.
Concatenate Concatenate two lists together, adding all of the items from the second list after the items in the first list.
Contains Returns true or false if the value is contained in the list.
Count Items Returns a count of all items in the list.
Difference For a given list, filter it down to only return the items that do NOT exist in the second list.
Filter From a list of objects, filter objects that match the fields in the filter object.
First Return the first item in a list of items.
First Match From a list of objects, pick the first object that matches the fields in the match object.
Get List of Page Numbers Get a list of page numbers, given a total count, along with the number of items you'd like to have in each page.
Example: You have 300 records and 100 per page, the list "[1,.2,.3]" would be returned.
Filter "From a list of objects, filter objects that match the fields in the filter object."
Get Number Between Given a minimum and maximum value, get a list of all of the numbers in between the two.  Includes both the minimum and maximum numbers too.
Intersection For two given lists, return only the items that exist in both lists.
Join Join all items in a list together as a string, separated by a separator.
Last Given a list of items, return the last one.
Pluck Given a list of objects, extract the value of a specific key from each one, returning a flat list of the key values for all objects.
Remove Duplicates Ensures that every item in a list exists once, and only once.  Removes any duplicate values.
Reverse Reverse the order of a list.

Add Item to List

Field Description
List
Workflow
Account

Other

Field Description
Shift Collection.Amount Specify the number of data elements you wish to remove from the front of the collection.  
Shift Collection.Amount Specify the number of data elements you wish to remove from the front of the collection.  
Shift Collection.Amount Specify the number of data elements you wish to remove from the front of the collection.  
Shift Collection.Amount Specify the number of data elements you wish to remove from the front of the collection.  
Shift Collection.Amount Specify the number of data elements you wish to remove from the front of the collection.  
Shift Collection.Amount Specify the number of data elements you wish to remove from the front of the collection.  
Last updated 14th April 2017