• Adam Staron
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hi guys I want to use the SOSL to pass a variable inside the FIND query but I have no idea how to do that and if its even possible doing it that way. Here for example -
 
conn.query("Select {user variable here} IN ALL FIELDS RETURNING Account(Name), Lead(Id, Name)",
        function (err, res) {
            if (err) { return console.error(err); }
            console.log(res);
        }
    );

Any tips on how I can get around that?

Thank you very much for your time :) 
Hi guys I want to use the SOSL to pass a variable inside the FIND query but I have no idea how to do that and if its even possible doing it that way. Here for example -
 
conn.query("Select {user variable here} IN ALL FIELDS RETURNING Account(Name), Lead(Id, Name)",
        function (err, res) {
            if (err) { return console.error(err); }
            console.log(res);
        }
    );
Any tips on how I can get around that?

Thank you very much for your time :)