Skip to main content

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!

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