Skip to main content

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

}

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