A destination or the necessary parameters to fetch one.
OptionalserviceBindingTransformFn?: ServiceBindingTransformFunctionCustom transformation function to control how a Destination is built from the given Service.
The name of the destination to retrieve from service bindings.
Optionalservice?: undefinedA promise resolving to the requested destination on success.
Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.
Returns the parameter if it is a destination, calls getDestination otherwise (which will try to fetch the destination from the Cloud Foundry destination service).
Fetching a destination requires:
If either of the prerequisites is not met or one of the services returns an error, this function will either throw an error or return a promise that rejects.