Write sosl queries trailhead challenge solution. Learn how to perform advanced SOSL searches across multiple objects and fields in Salesforce. Apex Basics & Database | Write SOSL Queries | Challenge 5 #salesforce #trailhead #challenge #ISTAMPERS ------------------------------------- Hello there! Subscribe and help me to get my Jun 11, 2024 · For this challenge, you will need to create a class that has a method accepting two strings. Have you done so? Read these directions: To pass this challenge, create an Apex class that returns both contacts and leads that have first or last name matching the incoming parameter. The discussion linked from the trailhead page usually clears this up. Understand the differences and similarities between SOSL and SOQL. The method searches for contacts that have a last name matching the first string and a mailing postal code matching the second. Apr 19, 2022 · Solution of Salesforce Trailhead - Write SOSL Queries This trailhead is a part of Apex Basics & Database Module. For what is worth, the trailhead challenges sometimes give errors unrelated to the real problem. The problem and my debug window is shown below: Create an Apex class that returns both contacts and leads based on a parameter. "Please add these records" makes it sound like you need to actually generate data. To pass this challenge, create an Apex class that returns both contacts and leads that have first or last name matching the incoming parameter. It gets the ID and Name of those contacts and returns them. xzdln uiyoo nqkgh secegoj qzlvk nxe cabn kmfuq vtmz yrodk