Skip to main content
Best answer

How to remove multiple lines of text using formatter


I’m trying to remove multiple lines of text from an email body before it gets posted to a slack message.

For example, the image shows the data being pulled from ‘Body Plain’ from a Gmail message. I want to remove all the text after the first line, so from ‘View Order’ onwards.

I can get formatter to remove ‘View order’ but not the bracket or link after that. Any help would be greatly appreciated!

Best answer by Troy Tessalone

Hi @JessieSheffie 

Try this Zap action: Formatter > Text > Split

Split at: View Order

Segment: Keep the first segment

View original
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
  • Answer
  • August 16, 2024

Hi @JessieSheffie 

Try this Zap action: Formatter > Text > Split

Split at: View Order

Segment: Keep the first segment


This worked, thank you!


  • New
  • September 8, 2024

Hi @JessieSheffie 

Try this Zap action: Formatter > Text > Split

Split at: View Order

Segment: Keep the first segment

I can’t find the option

 

 


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • September 9, 2024

Hi there @Hernan,

The Split Text action is under the “Text” action event in Formatter by Zapier. Here’s a short GIF of that:

74eede3fe6757ae52ea4f73d6f2fc921.gif
(view larger)

Hopefully, this helps.