Skip to main content
Best answer

Text split by comma

  • October 23, 2020
  • 4 replies
  • 2575 views

Hello, 

I am trying to format a text separated by commas, but every time the result is just one string. 

I have read the previous answers to this problem and I have already used the “formatter → utilities” option but still gives me the same result. 

While using the utilities option should I add on the separator field [:comma:] ? I ask to be sure, but I have already tried it and I still have a string after using the result on the “formatter text” option. 

On another thread, I also read that by using coding split.() we could obtain the split of the string. Nevertheless, I am not really an expert coding, and I am still struggling. 

Of what I have read the output should be: 

Output = { “Field_name” : result }} 

If the result should depend on the different data given by the split, how should I create my Onput? 

If someone was able to solve this problem without coding, could you please let me know how? 

Best answer by Troy Tessalone

Try these Zap app settings:

One issue I noticed is that if you split by comma the first segment will include this: “Shot list:”

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • October 23, 2020

Please provide examples of your input data that you’re trying to split and the desired output format.

App: Formatter > Text > Split

Article: https://zapier.com/help/doc/how-use-formatter-functions#using-split-text


  • Author
  • Beginner
  • October 23, 2020

Hello Troy, 

The Input data is a comment with a dish list 

I just want to have one output per dish to be able to fill in an HTML 

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • October 23, 2020

Try these Zap app settings:

One issue I noticed is that if you split by comma the first segment will include this: “Shot list:”

 


  • Author
  • Beginner
  • October 23, 2020

It’s perfect thanks !