I get "Error: User is not authorized to use destination (package: gen, name: myexternalwebsitename)....." when issuing a
var dest = $.net.http.readDestination("gen","myexternalwebsitename");
I have a 'myexternalwebsitename.xshttpdest' in the containing (sub) package that holds the executing service.xsjs
like so:
instance/app/caller/gen/service.xsjs
instance/app/caller/gen/myexternalwebsitename.xshttpdest
I can see that the 'not authorized' message will also be returned if there is any kind of file/folder naming error. I have checked carefully that all names are correct and they are. This is running from a trial instance, and the app files are updated/activated from the workbench.
My question is: As this follows the documentation examples, what will make this work ? What am I missing ?
Appreciate any help on this
Kelvin