Skip to main content
Question

Unable to pipe javascript code output into custom api request


Forum|alt.badge.img

I want to use this for hubspot to brevo syncing and my javascript is like:

 

const tagsString = inputData.tags || '';
const email = inputData.email || '';

const tagsArray = tagsString.split(';').map(tag => tag.trim());

output = {"attributes": {"EMAIL": email, "TAGS": tagsArray}}

When i want to use the output in the next step i can not select the complete output object but only keys that have a value > https://monosnap.com/direct/PAHFcIJxoAmn026kSBzMwuNZOSauul i am expecting to be able to select output directly but instead i see only EMAIL and TAGS as selection.

Even worst, if i select the the TAGS property this is is what gets send > https://monosnap.com/direct/hG7k8KbeAgab8qZ3oLOSp7UGyXJBuc it absolutely does not take the actual value but the unprocessed value because tagsArray is an array of strings

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.