How do I get the Total Count of Scenarios within a team / organization?
Looking at the Make API reference (List scenarios | Make Developer Hub) I can see a property within the response that goes by the name ‘returnTotalCount’ and is set to false.
Including a ‘returnTotalCount’ query string (url parameter) set to ‘true’ doesn’t change the value of this property. Including different query parameters such as ‘pg[sortBy]’ , ‘pg[limit]’ , ‘pg[offset]’ work perfectly as expected but don’t influence one bit on the ‘returnTotalCount’ property. So essentially I can’t find anything within the endpoint documentation which allows me to fetch the Total Count of scenarios within the Team / Organization I’m providing…
Would love any piece of help if anyone’s already cracked it
Got it! So you say - “do it the old fashioned way”
It seemed to me kind of wasteful (from the API side) to query the API for ALL DATA each & every time - and this returnTotalCount property sounded promising.
To your question of where I got it from, as stated above it simply appears within the response when making the API call to the ‘list Scenarios’ endpoint: