cancel
Showing results for 
Search instead for 
Did you mean: 

Package name for the destination file

0 Kudos

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!!!

pfefferf
Active Contributor
0 Kudos

".... is returning the error." -> a good and essential information which you should share is the error itself. Please can you add this to your message.

0 Kudos

Error message is updated in the question.

sanjoy0308
Active Participant
0 Kudos

Facing same issue. I have placed xshttpdest file in the same package/folder, but still getting error Configuration was not found for destination with name "<package>.destination".

Accepted Solutions (0)

Answers (0)