2 Webhooks being sent, only 1 received

Hello!

I’ve created a scenario for uploading and updating invoices from Salesforce via Make.com to Quickbooks.
It works by taking the outbound message from Salesforce (an XML webhook) when the invoice (object) is edited, parsing the XML, and processing it in to the relevant line items to create the Invoice.
The issue I have is that if I edit two objects at once (for example, during a report when you can edit multiple at once), Salesforce is showing me that 2 webhooks are being fired, but it seems that Make.com is only receiving one of these.

Does anyone know if there are any limitations to Make.com receiving webhooks, or if I’ve done something wrong?

Hi @Rutter, is it actually only receiving one webhook? Or just one per run?

There’s a couple ways to check this.

  1. You can turn off your scenario, then fire the webhook from Salesforce. Then manually “Run Once” in your scenario. Then run it again and see if it processes another webhook successfully.
  2. You can go into your Webhook module settings in your scenario and change the maximum number of results to something greater. Then trigger the scenario and see if there are two bundles coming through.

Let me know if either of these help!

Dan from MergeYourData.com

Hi!
Thanks so much for your reply, they were both great ideas.
So I turned the scenario off, then ran it with 3 objects, and looking at the webhook it’s only had one delivered.

I’ve also been testing, and within the Flow within Salesforce, I’ve also got it to send me an email after every ‘run’ the flow goes through.

Oh, should have also said, I did try increasing the bundle size as well. But sadly, no dice

So it seems that when I make changes within Salesforce to more than two records, the Webhook that is sent combines multiple invoices in to a single XLM array.
Does anyone know how I can break down the array to make multiple invoices?

Here is an example of the XML from the file
I’ve taken a lot of the sensitive data out

<?xml version="1.0" encoding="UTF-8"?> 00D8c000007Sww3EAC 04k8c0000008byBAAQ 00D8c000007Sww3!AQEAQIdYkdj6WS3G8mRcl_I9K3KN.NwX1Xl.paEEpzBylBGJPH61Dpeg8T3DNIsl1EJLvuuOWgAyKIR_1ikRU9APsUiWWaYY [https://breeez.my.salesforce.com/services/Soap/c/55.0/00D8c000007Sww3](https://breeez.my.salesforce.com/services/Soap/c/55.0/00D8c000007Sww3) [https://breeez.my.salesforce.com/services/Soap/u/55.0/00D8c000007Sww3](https://breeez.my.salesforce.com/services/Soap/u/55.0/00D8c000007Sww3) 04l8c00000x1hmhAAA a108c0000297C3lAAE Lewes USA client1zip Delaware client1street Client1 0018c00002JJbAjAAL false false 0058c00000BbxSbAAJ 2022-07-05T08:00:23.000Z USD false false 08/2022 . |. |. Monthly Marketing Services|Paid Marketing Management|Hosting and Maintenance 1|1|1 2501|317|50 [email@gmail.com](mailto:email@gmail.com) Name Surname 2022-08-05 Recurring false 0058c00000BbxSbAAJ 2022-07-07T18:18:20.000Z 2022-07-07T18:18:20.000Z 2022-07-07T18:18:20.000Z **INV-0001274** 2868.0 Net 30 false Carrie Lingo Team a0Y8c000017iR3vEAE Draft 2022-07-07T18:18:20.000Z 0018c00002JJbAjAAL-822 non_eu USD 9 Salesforce true 04l8c00000x1hmfAAA a108c0000297C3UAAU Southlake United States client2address TX client2address Client2 0018c00002JJbAEAA1 false false 0058c00000BbxSbAAJ 2022-07-05T08:00:10.000Z USD false false 08/2022 . |. |. Hosting and Maintenance|Advanced Telecoms Line Rental|Monthly Marketing Services 1|1|1 35|30|1100 clientemail@[gmail.com](http://gmail.com) Shelly Claffey 2022-08-05 Recurring false 0058c00000BbxSbAAJ 2022-07-07T18:18:20.000Z 2022-07-07T18:18:20.000Z 2022-07-07T18:18:20.000Z **INV-0001257** 1165.0 Net 30 false client2address a0Y8c000017iR3IEAU Draft 2022-07-07T18:18:20.000Z 0018c00002JJbAEAA1-822 non_eu USD 27 Salesforce true 04l8c00000x1hmgAAA a108c0000297C3XAAU Austin USA Client3address Texas Client3address Client3 0018c00002JJb9vAAD false false 0058c00000BbxSbAAJ 2022-07-05T08:00:10.000Z USD false false 08/2022 . |. |. |. Hosting and Maintenance|Paid Marketing Management|Monthly Marketing Services|Advanced Telecoms Line Rental 1|1|1|1 23|209|742|0 [clientemail@aol.com](mailto:clientemail@aol.com) Dennis Watson 2022-08-05 Recurring false 0058c00000BbxSbAAJ 2022-07-07T18:18:20.000Z 2022-07-07T18:18:20.000Z 2022-07-07T18:18:20.000Z **INV-0001260** 974.0 Net 30 false Client3address a0Y8c000017iR3NEAU Draft in billing system 2022-07-07T18:18:20.000Z 0018c00002JJb9vAAD-822 non_eu USD 11 171 Salesforce true

Last one on this.
From what I can see, it’ll be best if we can somehow split the XML in to three bundles, then run the scenario for each bundle.
Does anyone know if that’s possible?

I’d take a look at the Iterator under the Flow Control module. If your data is structured as an array, you’ll be able to pop that Iterator on as the second module and then the rest of the scenario will run for each bundle individually.

Otherwise, take a look at the XML module and the parsing functionality.

1 Like

Hi, yeah, I’ve already got an iterator to build the array for the invoice to generate.
And I’ve also had to use the XML parse to break out my initial bundle.

Thank you, thank you, thank you!
So I’ve been playing around with this for sometime, and you were right.
Running an Iterator after the XML parse then breaks the single bundle in to multiple bundles.
I’ve updated the rest of the scenario to take it’s data from that iterator, and it works perfectly.
thanks once again

2 Likes

Hi Chris, I’m actually looking to implement this flow as well. I’m wondering, why didn’t you use the Salesforce module in Make? It has a trigger to watch new or updated objects. I’d appreciate any insight. Thanks!

Hay Yiddy,
So a few reasons,

  • I wanted this to be an instant connection
  • I wanted to but some validation within Salesforce, as well as other functionality with a SF flow

If you need any help and advise on this, let me know, happy to share