Skip to main content
Question

How do I get ALL nested line-items with Custom Pill Mapping?

  • February 14, 2025
  • 1 reply
  • 40 views

So I have data that comes in via a webhook. I have lots of additional properties delivered as line items nested under lead_variables as below:

 

Now my issue is that I need to use custom pill mapping to get them, because they are not served in the sample data the webhook delivers with the "test" function.

 

The trick is I don't know what those lead variables will be. For example, "City" may exist as a custom lead variable once, but not the other time. The other time it may be "Cittyyy" or a different spelling. So I can't just map like {{nodeid__lead_variables__City}} and so on. Btw, if I were to do that, I do get the City, no problem there.

 

What I want to do is find a way to target {{nodeid__lead_variables}} and get ALL the keyword / value pairs so to speak, whatever they are. I tried using {{noideid__lead_variables}}, it doesn't return anything. I tried using {{nodeid__lead_variables[]}} it too doesn't return anything. How can I get all of them?

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31450 replies
  • February 14, 2025

Hi ​@tandadigital 

Try using this Zap trigger: Webhook - Catch RAW Hook