Question

Count Line Items

  • 23 November 2022
  • 1 reply
  • 14 views

I referred to your previous post about this but unfortunately it is now closed but also the code is not working.  It is returning a 0 even though the input has 3 comma separated items.

Please can anyone help.

Here is the code again:

 

let items = [];

if (inputData.names) { items = inputData.names.split(","); }

return [{ length: items.length }];


1 reply

Userlevel 7
Badge +14

Hi @lkfunnel 

Good question.

Please post detailed screenshots with how your Code step is configured in order for us to have proper context.

 

 

Reply