Skip to main content
Best answer

Webhook is not receiving data from the Loop module


Forum|alt.badge.img

Hi there   😊
I will briefly describe the process, steps and my question. I will be grateful for all the answers and fresh perspective. 
The task is to extract the necessary link from the email (there may be several links in the email), go to it, and then fetch the data from the desired page. 

Now the script looks like this:
1. Module - a new email
2. Filtering emails by a specific sender
3. I remove unnecessary characters from html, leave only links
4. Text - Extract Pattern - get the link 
5. Loop From Line Items - I go through all the links 
The output data in the Loop module (i.e. the link) differs from the actual address that opens in the browser

6.An additional filter that checks that the Loop value is not empty.


7. Webhook Get - should follow each link from the Loop module. In test mode, when I drop each link from the Loop into the test field of the Webhook, everything works. 
But when I launched a new email, the Webhook module threw an error:

This Webhooks by Zapier step hit an error
Required field “URL” is missing.

In the end, I would like to use a filter to select the desired link from Webhooks 

On the screenshots you can see the settings of module 5 Loop, the settings of module 6.Webhook, part of the output of module 5. As far as I understand, the Loop module works correctly. 


But why does the webhook not receive the links? What can I do?

Best answer by Troy Tessalone

Hi ​@Alina_61 

You need to output your parsed URL as line items rather than as separate fields.

The way you have your Looping step configured is with 6 separate fields, when it should be 1 field that has N URLs to iterate.

Plus, the parsed URLs appear to have leading and trailing commas, which would make those invalid URLs.

 

View original
Did this topic help you find an answer to your question?

5 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30752 replies
  • Answer
  • January 20, 2025

Hi ​@Alina_61 

You need to output your parsed URL as line items rather than as separate fields.

The way you have your Looping step configured is with 6 separate fields, when it should be 1 field that has N URLs to iterate.

Plus, the parsed URLs appear to have leading and trailing commas, which would make those invalid URLs.

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 2 replies
  • January 20, 2025

Hi, ​@Troy Tessalone 
Thank you for your reply, it's a useful point. Could you please tell me, Webhook can handle a queue from Loop, provided that the links are passed without extra characters?
I want to understand if it's not a stupid idea to pass several links to the Webhook at once 


Troy Tessalone
Forum|alt.badge.img+14

@Alina_61 

Try using this: Looping - Create Loop from Text

Set the delimiter to be: comma

Have 1 input var: URL

Map all of the vars from Zap step 4 into the 1 field.

Make sure the Filter step after the Looping step checks for the existence of a value for the URL variable.


Forum|alt.badge.img
  • Author
  • Beginner
  • 2 replies
  • January 22, 2025

Greetings ​@Troy Tessalone 
I've reworked the logic, made a post so that an array of links is sent to the Loop (because there can be a different number of them )
After the Loop, I installed a filter, and then the Webhook. Everything works 
Thank you for your recommendations and help  😊


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7304 replies
  • January 23, 2025

That’s awesome news, ​@Alina_61! Great work on reworking the logic for the Zap. 🙌

Big shout-out to ​@Troy Tessalone for pointing you in the right direction here—love to see this! 🧡

Please do reach back out if you need any further help. 

In the meantime, happy Zapping! ⚡