Best answer

Strip Country from an address string

  • 3 January 2024
  • 3 replies
  • 12 views

This should be fairly simple but I’m pulling an address from a text string so I can do a lookup in my database for the correct record.  I need to strip out a portion of that string to complete the lookup.  For example

Input:  1842 White Cedar Drive, Gastonia, North Carolina, United States

Desired result/output:   1842 White Cedar Drive

icon

Best answer by Troy Tessalone 3 January 2024, 23:39

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.

3 replies

Userlevel 7
Badge +14

Hi @JPAHub 

Try this: Formatter > Text > Split

Split at the ,

Keep the First Segment

Thank you Troy, I tried that may have part of the rule set incorrectly  I’ll give it another shot.  

Userlevel 7
Badge +14

@JPAHub 

Post screenshots with how your Zap Formatter step is configured if you still need help.