rest - Using Node.js & NForce, Retrieve Records on Startup -


I am trying to modify this code:

As well as setting up the streaming, it also performs a query on the startup to retrieve some records that appear to the user. I am trying to apply code like this:

  var q = 'Select ID, name, date created, billing from account'; Sfdc.query ({query: q}, function (mistake, resp) {if (! Disturbances and resp.records) {// do something with records, display the client}});  

After connection and setting out, however, I do not know where the code should be placed in the life cycle of the main application (app.js). Also, I am unsure of how to pass this record to me so that it can be displayed on the client side. App I get this error when I put this code in different places in JS:

  TypeError: The undefined property 'instance_url' can not be read  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -