Skip to main content Unisciti a noi al TDX, a San Francisco o su Salesforce+, il 5-6 marzo per la conferenza degli sviluppatori sull'era degli Agenti IA. Registrati ora.

#Trailhead Challenges2.444 utenti parlano di questo argomento

Hands-on challenges are the “secret sauce” of Trailhead. Before searching for solutions to superbadge challenges, review the Salesforce Certification Program Agreement and Policies.
4 risposte
  1. 6 feb, 13:10

    Hello @R Pious Wilfred Nicholas

    Try below code and it should work.

    public class PropertyUtility{

    public static void newListedProperties(){

    List<Property__c> newPropList = [Select Name,Days_On_Market__c,Broker__r.Email__c from Property__c where Days_On_Market__c < 31];

    for(Property__c p : newPropList){

    string propEmail = p.Name +':'+ p.Broker__r.Email__c ;

    system.debug(propEmail);

    }

    }

    }

    Hope above information was helpful. 

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4LilSAF

0/9000
5 risposte
  1. 18 dic 2023, 03:30

    Hi ,

     

    Try it on your new playground.

     

    Click this button to delete and create records using Apex code. If you can read Apex code, I think you can deal with this by modifying the code.

     

    global with sharing class DreamHouseSampleDataController {

    @RemoteAction

    global static void deleteAll() {

    DELETE [SELECT ID FROM favorite__c];

    DELETE [SELECT ID FROM property__c];

    DELETE [SELECT ID FROM broker__c];

    DELETE [SELECT ID FROM bot_command__c];

    }

    }

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Rd3DRSAZ

0/9000

For the challenge within 

  1. SOQL for Admins
  2. Create Relationship Queries with Custom Objects

Every time I try to import the sample data I get the following error. 

 

Error

Error while importing data

 

and it wont let me complete the challenge without the data.

 

#Trailhead Challenges

0/9000

SOQL for Admins > Create Relationship Queries with Custom Objects

 

I'm unable to complete the above lab 

 

it's saying We can’t find the correct SOQL query in the PropertyUtility class.Regarding Create Relationship Queries with Custom Objects Lab

But in logs I'm getting the values 

1.pngCan anyone help me to resolve this

 

#Trailhead Challenges

5 risposte
  1. 21 ott 2024, 07:50

    Hi @MANJESH M ,

     

    public class PropertyUtility{

    public static void newListedProperties(){

    List<Property__c> newPropList = [Select Name,Days_On_Market__c,Broker__r.Email__c from Property__c where Days_On_Market__c < 31];

    for(Property__c p : newPropList){

    string propEmail = p.Name +':'+ p.Broker__r.Email__c ;

    system.debug(propEmail);

    }

    }

    }

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8xshSAB

0/9000