Skip to main content
Best answer

Match exact number in path

  • August 30, 2022
  • 8 replies
  • 252 views

Hello

 

I am creating a path rule based on an incoming text of 1 or 2. 

 

I’ve tried a few options but I need to be able to determine the path based on a 1 or 2 response of an incoming text. 

However it either doesnt work. Or it will match 255, 525, 552 .. i just need it to match an exact 2 or 1. 

Best answer by MohSwellam

Hi @rleon10 , 

 

So you need to do one of 4 things: 

 

  1. Use Formatter By Zapier > Event =  Text > Transform = Extract Number, this will extract whatever number is there and you can use it in the path. 
  2. Either match the entire phrase and make it “Exactly Matches” - not sure if that applies to you or not
  3. Use Text Starts With “2 “ with a space after it
  4. Depending on where the data is coming from and whether it is like a form with Single Select options, use a lookup table (Formatter by Zapier > Utilities > Lookup Table) to convert the sentence into numbers 

Hope any of those solutions help :) 

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

8 replies

jesse
Forum|alt.badge.img+9
  • Architect
  • August 30, 2022

Hey @rleon10 sorry to hear you’re running into some trouble here! Are you able to share more information/screenshots around how your paths are configured? There should be a path condition where you can say “text > EXACTLY matches”. I’d be curious to know if you’re using that as well as the field you’re using within those conditions. Let us know!


  • Author
  • Beginner
  • August 30, 2022

I have tried exactly matches .. 

But if they respond with a sentence “2 i can’t make it” or “1 yes ill be there”  the condition is met. 

 

The one that works is ..

“Body Contains Text 2” or “Body Contains Text 1”

The issue is that this will match 255 525 552 .. not just 2

 


nicksimard
Forum|alt.badge.img+11
  • Zapier Staff
  • August 30, 2022

Hi @rleon10!

If you use Exactly Matches then it shouldn’t be considering something like “2 i can’t make it” to be an exact match for “2”. 

Do you have any live runs of the Zap that you could share a screenshot of (from your Zap History) to show that this happened? It’s definitely not intended behaviour.

Please remember to remove any personally identifiable information from screenshots before sharing :) 


  • Author
  • Beginner
  • August 30, 2022

 

These are the test results .. i sent 2 i wont make it .. with an exactly match of 2 and it doesn't pass. 


MohSwellam
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+8
  • Zapier Orchestrator & Solution Partner
  • Answer
  • September 1, 2022

Hi @rleon10 , 

 

So you need to do one of 4 things: 

 

  1. Use Formatter By Zapier > Event =  Text > Transform = Extract Number, this will extract whatever number is there and you can use it in the path. 
  2. Either match the entire phrase and make it “Exactly Matches” - not sure if that applies to you or not
  3. Use Text Starts With “2 “ with a space after it
  4. Depending on where the data is coming from and whether it is like a form with Single Select options, use a lookup table (Formatter by Zapier > Utilities > Lookup Table) to convert the sentence into numbers 

Hope any of those solutions help :) 


  • Author
  • Beginner
  • September 1, 2022

Thanks @MohSwellam 

 

ill set up a test zap and try that! 

 

 


MohSwellam
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+8
  • Zapier Orchestrator & Solution Partner
  • September 1, 2022

My pleasure @rleon10 :) 

 

If any of that works, Id appreciate if you mark my answer as solution :) 


MohSwellam
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+8
  • Zapier Orchestrator & Solution Partner
  • September 6, 2022

Hi @rleon10 

 

Did any of the above solutions work?