on 02-13-2019 3:30 PM
Hello Experts,
I'm developing an xsa advanced application and I would like to consume an API through an xsjs file, but I find myself unable to find the right way to do it.
I am using the below code to call the API using destination file:
var dest = $.net.http.readDestination(<package>, "destination");
My project structure is shown below:
For this project structure please guide me for the package name because i tried using the main package name and node JS module name but still the below code is returning the error:"Configuration was not found for destination with name "<package>.destination";"
var dest = $.net.http.readDestination(<package>, "destination")
Thanks in advance!!!
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.