CODE MODE: Remove Duplicates from Array of Line Items

  • 24 November 2021
  • 0 replies
  • 10 views

Userlevel 7
Badge +12

CODE MODE: Remove Duplicates from Array of Line Items

 

Tips and Inspiration contributed by: Troy Tessalone | Automation Ace | Zapier Expert | #1 Zapier Community Contributor and Moderator

 

Q: Ever wanted to remove duplicates from an array of line items?

A: Use a Code app as a Zap step: https://zapier.com/apps/code/help

 

Code step configuration using JavaScript

NOTE: Map your line items array to the right side value for the “Set” Input Data variable in place of “A,B,C,C,B,A”.

 

RESULTS

Code step results WITH removing duplicate values from an array of line items

 


0 replies

Be the first to reply!

Reply