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.
A promise resolving to the requested destination on success.
A destination or the necessary parameters to fetch one.
Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.