How can I separate this variable into separate variables

Hey, I was trying to fix this issue. Here is the title(role) variable that I have obtained from the http module via A, I and after that, I parsed it using Parse JSON. Now, since I want to use the Apify module, the expected input should be ik “CEO”, “CFO“, “CXO“ … But I am getting it as “CEO, CFO, CXO“. How do I achieve my expected format? I even tried to use the /split function in the ‘set multiple variable‘ module, but I didn’t succeed.

Welcome to the Make Community!

Did you split by Comma+Space as shown in the screenshot, or just a Comma?

If you need more assistance please provide screenshots of how you used the split function.

@samliew

Yeah sure.

As suspected, your split function is incorrectly used.

To do this, you can use the built-in function:

  • split
    split(text; separator)

This function may have also been covered in the Make Academy tutorials — refer to the Make Academy Course Overview to learn more.

Here’s an example of how you can use this function:

{{ split(109.title;", ") }}
(copy-paste the above into the field, or type it exactly as shown)

e.g.:
Screenshot 2025-11-17 091904

There is a space where the red arrow is pointing at.

Hope this helps! If you are still having trouble, please provide more details.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

2 Likes

Hey, that thing worked, but I was facing one more thing. See, by doing this, we separate the variables into as many fields as there exist. However, since I wanted to put them in JSON, they should be in (“ “). The issue is that I don’t know how many fields will be present in one variable, because the scenario will receive a webhook response from the client. So he can add just a single role (Ex, CEO) or so many roles (Ex, CEO, CXO, CFO,…), so how should I place them in my JSON without knowing the no. of fields?
That JSON’s Part :
“personTitleIncludes”: [
“(values)”
],

No problem, glad I could help with "How can I separate this variable into separate variables"! :slight_smile:

1. Which was the most helpful post in this thread?

The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep this forum organised. :folded_hands:

This marks the topic as solved, so that others can:

  • save time when browsing the latest activity on the forum, and
  • quickly jump to the solution in this topic

To do this, simply click the checkbox at the bottom of the post that is the most helpful in answering your question.

a screenshot of post menu options at the bottom of each post

:link: Here’s a magic link to a list of your other “unsolved” topics: status:unsolved

2. Have you learnt something new?

Do bookmark this topic so you can easily find and return to this topic in future.

a screenshot of bookmark link at the bottom of the topic

:link: Here’s a magic link to a list of your bookmarks /my/activity/bookmarks

3. Have a different/follow-up question? Start a new topic.

Creating a new topic for each question makes it easier for others with the same problem to search for answers. You are also more likely to receive help sooner as new topics are displayed first on the forum’s “new” page!

Hope this helps! If you are still having trouble, please provide more details.

@samliew