DEV Community

Oliver Flint
Oliver Flint

Posted on • Originally published at oliverflint.co.uk on

2 1

PCF WebApi execute

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!

execute

(context.webAPI as any).execute(request).then(successCallback, errorCallback);
Enter fullscreen mode Exit fullscreen mode

see the execute Client API docs for more info

executeMultiple

(context.webAPI as any)
  .executeMultiple(requests)
  .then(successCallback, errorCallback);
Enter fullscreen mode Exit fullscreen mode

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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay