Skip to main content
Solved

HTTP Caller Sending Too Many Requests (Slack Webhook)

  • October 14, 2021
  • 2 replies
  • 17 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!

Best answer by oscard

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • 344 replies
  • Best Answer
  • October 14, 2021

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.


  • Author
  • 2 replies
  • October 14, 2021

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.