title: Closest Facility Arcgis online javascript not returning data
body: <p>I am trying to use the Closest Facility (CF) function in ArcGIS API for Javascript. I need to be able to pass a shape coming from a feature service as an incident, and use a feature service with multiple points as the facilities. </p>
  
  <p>Currently when I use the Closest Facility task, nothing happens. No calls are made at all if I look at the network activity. </p>
  
  <pre><code>CFTask.solve(CFParams).then(function (solveResult) {
      array.forEach(solveResult.routes, function (route, index) {
          console.log(route);
      });
  
  });
  </code></pre>
  
  <p>I understand that i may be passing it incorrect data, but would expect an error message, rather than the nothing I get now.</p>
  
  <p>2 questions:</p>
  
  <ul>
  <li>Does the above code snippet actually run the Closest Facility
  function?  </li>
  <li>How do add data from a feature service to a feature set correctly?</li>
  </ul>