Best answer

Find and match one object value from Webhook and get another object value for next step


Hello,

I am trying to get value from a webhook. Any help would be appreciated!

Situation:
Country code gets submitted from WooCommerce (US,GB,CA, etc) - Then I have list like this from a 3rd party service:

 



I need matching id # to the country code so I can use it in later steps. 

So based on iso-31661-a2 (which I get from step 1) I want to get id.

So if iso-3166-1a2 = AT, id is 2. How can I get ids by having iso-3166-1-a2 (country code) value?


Thank you!

icon

Best answer by Troy Tessalone 3 May 2022, 17:48

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

Userlevel 7
Badge +14

Hi @dgeg 

Good question.

Check out this related topic:

 

Hey @Troy Tessalone , 

Thanks for the link. That method is quite useful, but it can only filter items that I have value for already. I can’t find a value of another property based on it (which is my main challenge)

 

Userlevel 7
Badge +14

@dgeg 

Perhaps this help topic will be of use:

 

@Troy Tessalone  

That did the trick! Thank you!