Artisan SVG > Call Workflow (call-workflow) (flash-1)
Artisan SVG > Script (script) (file-format-javascript)

Venn list compare: Compare two arrays of objects and return shared and exclusive items

Workflow
Universal
Beginner

This is a 'Workflow' template which means that it is a single standalone workflow.

Some workflow templates can be modified to work with other workflow templates - e.g. to convert a data sync between two services from uni-directional to bi-directional

How to use:

  • Pass the callable two lists to compare

  • Choose how you want to compare them:

    • Simple comparison = items must exactly match

    • Comparison by key = the items must be objects, but use a common key (e.g., ID) to compare with

  • Choose how you wish to return the results for the shared items (for comparison by key only):

    • Merge the objects = Merges the distinct properties from each object into a new object

    • List one values only = Returns the object structure from the items in the first list

    • List two values only = Returns the object structure from the items in the second list

Returns:

  1. sharedItems - The items shared between the lists

  2. exclusiveItems - an object containing the items that are exclusive to each list

    1. listOne - The items exclusive to the first list

    2. listTwo - The items exclusive to the second list