Probelm in jsforce


#1

I added “meteor add strikeout:salesforce”

I have written this code in the server /main.js
var jsconn = new jsforce.Connection({
loginUrl : ‘https://login.salesforce.com
});

getting error that jsforce is not defined but when I checked browser console
it was showing data in the jsforce.


#2

I think jsforce is only available on server, not on client


#3

Hi,
I am new in meteor .I am trying to show salesforce data on meteor .Can u please suggest how to do this


#4

Yes, you can use Queries, see: https://jsforce.github.io/document/#query


#5

Thanks for your reply :slight_smile: ,
I was using this jsforce and added “strikeout:salesforce” earlier and got error that" jsforce is not defined"

if(Meteor.isServer){

var jsconn = new jsforce.Connection({ 
                                            loginUrl : 'https://login.salesforce.com'
                        });
 }

Please correct me where I am wrong or what I am missing.


#6

Are you having the same issue when you have that code (without ‘if(meteor.isServer)’ ) on code in your server folder?