• SFDC_Dave
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I am creating a simple Java Script to do Bulk Lead Conversion from a list view. I want to ask the user for the Account name to convert the leads to and include that Account name in a Query to see if it already exists. 

 

I can not find the right format to incorporate the Account Name the user inputted to add to my Query. Can someone please help?!

 

var AccountName=prompt("Select Account Name to Convert to",'' ); //this works fine

 

Not sure how to structure the Query to find existing Account names based on Account Name

 

var accts=sforce.connection.query("Select Id, Name from Account where Name like ?????????? ");