Homelab, Linux & ABAP (~˘▾˘)~
 

[CAP] Get Destination data using sap-cloud-sdk

https://sap.github.io/cloud-sdk/docs/js/features/connectivity/destination

const { getDestination } = require("@sap-cloud-sdk/core")
const myDestination= await getDestination("myDestination")
if (myDestination === null) throw Error(`Destination "myDestination" not found`)
for (let key in myDestination) {
       console.log(key, myDestination[key])
}

Leave a Reply

Your email address will not be published.