Question

How to line item

  • 18 February 2022
  • 1 reply
  • 11 views

Userlevel 2
Badge

I’m pulling deal data from activecampaign and want to send in an email as 

 

title1 - task1

title2 - task2

what utility should I be using? Everything I’m trying is returning the same data I’m inputting, or give me a Forbidden error.

Data below is simplified just to show the necessary information.

{

deals
    1
    title: SSP Eyewear
    nextTask: https://domain.api-us1.com/api/3/deals/44/nextTask
    2
    title: BA Direct
    nextTask: https://domain.api-us1.com/api/3/deals/51/nextTask

}


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @Robert_Segelquist 

Try this Javascript Code step: https://zapier.com/apps/code/help

 

CONFIG

 

CODE

let A1 = inputData.A1.split(",");
let A2 = inputData.A2.split(",");
let Set = [];

for (let i = 0; i < A1.length; i++) {
Set.push(A1[i] + " - " + A2[i]);
}

Set = Set.join("\n");

output = [{Set, A1, A2}];

 

RESULTS