Array does not make string values of strings

Hello everybody.

I try to synchronize between ActiveCampaign an a third party API. I want tags from ActiveCampaign to add in third party API. I get tags from ActiveCampaign in comma separated string:

I create array from it. Then I get the tags that already exist in the third party API and merge together and deduplicate. So result of this is total array:
(tags that already exist)


(merge and deduplicate)

RESULT:

The third party API expects array of string values, so this causes an error. If the functions create an array, then why is the array not with [ and ] and the values not with " " ?

If I use create variable, then it shows Array with string values?

What can I change so I can send the total array via the API call?

Grazie,
Benito

1 Like

This is because arrays are converted into strings when the array variable is directly mapped in a TEXT field.

To prevent this, you need to simply add the [" "] brackets around your mapped array to send it as an array.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

2 Likes