Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Soql in Vf page using sForce.connection

Asked by Ajit Yadav Apr 16, 2021 1.4K views 1 answer
Share

About this question

I am trying to soql in VF page. But I am not getting an result. I have verified my code.

 [removed][removed] [removed][removed] [removed][removed] [removed] function soqlQuery(){ try{ var result = sforce.connection.query("SELECT Id, Name from Account",{ onSuccess : function(result){ alert('I am in 2'); }, onFailure : function(error){ } }); }catch(e){ alert(e); } } [removed]=function(){ soqlQuery(); } [removed] 

Can anyone check and let me know what i am missing out here. what is? How sforce connect?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.