CODE MODE: Remove Blank/Empty/Null Values from Array of Line Items

  • 24 November 2021
  • 0 replies
  • 17 views

Userlevel 7
Badge +12

CODE MODE: Remove Blank/Empty/Null Values 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 blank/empty/null values 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”.

 

RESULTS

Code step results WITHOUT filtering blank/empty/null values from an array of line items

 

Code step results WITH filtering blank/empty/null values from an array of line items


0 replies

Be the first to reply!

Reply