Skip to main content
Question

How to line item

  • February 18, 2022
  • 1 reply
  • 33 views

Robert_Segelquist
Forum|alt.badge.img

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

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • February 18, 2022

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