Homelab, Linux, JS & 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/connectivity")
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. Required fields are marked *