Consider this example from this link: https://learn.microsoft.com/en-us/office/dev/add-ins/excel/excel-tutorial-custom-functions#create-a-custom-function-that-requests-data-from-the-web
function stockPrice(ticker) {
var url = "https://api.iextrading.com/1.0/stock/" + ticker + "/price";
return fetch(url)
.then(function(response) {
return response.text();
})
.then(function(text) {
return parseFloat(text);
});
// Note: in case of an error, the returned rejected Promise
// will be bubbled up to Excel to indicate an error.
}
CustomFunctionMappings.STOCKPRICE = stockPrice;
Is there a possibility to batch the web service request and calling it just once by giving it all the parameters of each row in one request, and hence updating all the rows with the respective responses returned from the service at once, rather than calling web service for each row? This will help in case of large number of rows.