scripts/dashboard-from-json.js
function(error, response, body) {
  var rspBody = helper.handleCB(error, response, body);
  if (rspBody != null) {
    var destId = config.get(program.dest).accountId;
    var url = 'http://insights.newrelic.com/accounts/' + destId + '/dashboards/' + rspBody.dashboard.id;
    console.log('Dashboard created: ' + url);
  }
}
function(error, response, body) {
  var rspBody = helper.handleCB(error, response, body);
  if (rspBody != null) {
    var destId = config.get(program.dest).accountId;
    var url = 'http://insights.newrelic.com/accounts/' + destId + '/dashboards/' + rspBody.dashboard.id;
    console.log('Dashboard created: ' + url);
  }
}
function ( error , response , body ) { var rspBody = helper . handleCB ( error , response , body ) ; if ( rspBody != null ) { var destId = config . get ( program . dest ) . accountId ; var url = 'http://insights.newrelic.com/accounts/' + destId + '/dashboards/' + rspBody . dashboard . id ; console . log ( 'Dashboard created: ' + url ) ; } }
Print out the URL of the newly created dashboard
Print out the URL of the newly created dashboard