I am trying to use this barrier parameter without much luck. I want to query against a feature service I create.
var networkServiceUrl = 'http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/MapServer/'
routeParams.barriers = new DataFile({
url: networkServiceUrl + "/1/query?where=1%3D1&outFields=Name,RouteName&f=json"}
);
you should move this to a Place in GeoNet where you have a better chance on gettng this question answered. This is for help about GeoNet, here is the community structure