Skip to main content
Not every extension needs to register a provider. A custom function is the simplest way to add behavior: it follows the SDK’s standard function shape and can access DynamicCore services through the client.

Conventions

Dynamic SDK functions use a consistent shape:
  • The first argument is a single object with named parameters.
  • The second argument is an optional DynamicClient, defaulting to getDefaultClient().
  • Use named exports and match the file name to the function name.

Example: call an external API

This function uses getCore to access the client’s fetch service and talk to your own backend.

Use the function

Import the function from your extension package. The default client is used automatically:
When your app uses multiple Dynamic clients, create the client in one module and pass it as the second argument:
Last modified on August 3, 2026