Writing/Power Platform

PCF WebApi execute

Explore the execute and executeMultiple methods available in the PCF WebApi.

The PCF WebApi execute method is lurking in the background!

Yep, missing from the docs and the type definitions but it's there and it works!

pcf webapi

execute

(context.webAPI as any).execute(request).then(successCallback, errorCallback);

see the execute Client API docs for more info

executeMultiple

(context.webAPI as any)
  .executeMultiple(requests)
  .then(successCallback, errorCallback);

see the executeMultiple Client API docs for more info

Enjoy! Ollie

Disclaimer! Some of the tips 'n' tricks in the PCF Tips 'n' Tricks category are to be used with caution. Although they may work at the time of writing, they may or may not be officially supported by Microsoft

Thanks for reading

More notes, fewer lost discoveries.