youtube image
From YouTube: PnP: Custom function batching for Excel add-ins

Description

If your custom functions call a remote service you may want to use a batching pattern to reduce the number of network calls to the remote service. This is useful when a spreadsheet recalculates and it contains many of your custom functions. Recalculate will result in many calls to your custom functions, but you can batch them into one or a few calls to the remote service.

Sample code: https://github.com/OfficeDev/PnP-OfficeAddins/tree/master/Excel-custom-functions/Batching (github.com)

Additional Office Add-ins PnP samples: https://aka.ms/pnpofficeaddins (github.com)