Solved

HTTP Caller Sending Too Many Requests (Slack Webhook)

  • 14 October 2021
  • 2 replies
  • 0 views

I am running a workspace that detects changes in data between an API and Web App and applies only updates to the Web App using a change detector transformer. I am sending a notification to a Slack Webhook but instead of a single HTTP request being made, it makes 1 request for each data record updated.

 

What I Want:

"Successfully updated 70 records".

 

What is Happening:

"Successfully updated 1 records".

"Successfully updated 2 records".

And so on till 70...

 

Is there a transformer that will allow me to sum the number of updated records and only send a single HTTP request to the Slack Webhook?

 

Workbench Screenshot:

Workbench Screenshot 

Thanks!

icon

Best answer by oscard 14 October 2021, 11:46

View original

2 replies

Userlevel 2
Badge +19

You could use the transformer FeatureCounter followed by a Sampler of just one feature.

Or you could use the StatisticCalculator. There you have a function for total count of features.

You could use the transformer FeatureCounter followed by a Sampler of just one feature.

Or you could use the StatisticCalculator. There you have a function for total count of features.

Thanks very much. Both methods were acceptable. I used the StatisticsCalculator as it's simply a transformer less.

Reply