Skip to main content The last day to register for a Salesforce or Tableau exam is June 30th. Learn more about the new Salesforce certification experience coming July 21st.

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.

Step not yet complete in ë‚´ Trailhead Playground 1

An unexpected error occurred while inserting Opportunity records and we couldn't check your work. Make sure Opportunity records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team. 

 

#Trailhead Challenges

0/9000

Hi everyone, 

 

I'm looking at how to retrieve a specific child record. I need to make an API call to salesforce, and have returned the a child record with a specific name. 

 

Currently what I'm working with is this:  

/sobjects/Contact/ContactID/CustomChildObject__r 

 

This gives me ALL the child records, I would like to specify that the Name = '2025 Renewal%'  

 

I know I can do this with a SOQL query, but is there a way to do this without? 

 

#Nonprofit #Salesforce Developer 

2 answers
  1. Jun 19, 6:07 PM

    Here's how you can achieve your goal of retrieving a specific child record from API.  

    1. Use the query resource with a subquery:

    • SELECT Id, Name FROM Contact WHERE Id = 'ContactId': This is the main query to select the parent Contact record.
    • (SELECT Id, Name FROM CustomChildObject__r WHERE Name LIKE '2025 Renewal%'): This is the subquery that retrieves the child records from the CustomChildObject__r relationship where the Name matches '2025 Renewal%'.
    /services/data/vXX.X/query?q=SELECT+Id%2C+Name+FROM+Contact+WHERE+Id+%3D+%27ContactId%27+AND+%28SELECT+Id%2C+Name+FROM+CustomChildObject__r+WHERE+Name+LIKE+%272025+Renewal%25%27%29

     

    2. User Interface API with filtering (if applicable): 

    • /ui-api/records/ContactId/child-relationships/CustomChildObject__r: This part retrieves the child records for the specified Contact.
    • ?q=Name+LIKE+'2025+Renewal%25': The q parameter is used to apply a filter based on the Name field. This will depend on whether the UI API endpoint supports filtering related records this way. 
    /services/data/vXX.X/ui-api/records/ContactId/child-relationships/CustomChildObject__r?q=Name+LIKE+'2025+Renewal%25'
0/9000

In Become an Agentblazer Champion>> Bring External Data into the Contact Page Layout Module >> I'm facing issue in Connect Data Cloud and CRM with Enrichment section. I am unable to choose ExternalReservation object for Data Cloud Object input.  

Kindly help on priority. 

#Trailhead Challenges  #Trailhead  #Agentforce

5 answers
  1. Today, 2:07 PM

    For all who are stuck here I figured this one out... 

    Go to Data Cloud -> Data Model -> ExternalReservation -> Relationships -> Edit 

    Set it up like so: 

    Object: ExternalReservation 

    Field: Contact ID 

    Cardinality: 1:1 

    Related Object: Account Contact 

    Related Field: Account Contact ID 

     

    Enjoy All <3

0/9000

Hello if anyone could help with flow is greatly appreciated.. I have a flow to count number of attendees for events. I added another flow to recount the number of attendees when attendees get deleted but its not recounting. Not sure what could be the reason its not doing so..  

 

#Flow

 

Help with flow

 

 

2025-06-29_9-59-21 flow 2.jpg

 

 

0/9000
3 answers
0/9000

I'm trying to find an effective way to indicate whether a Person Account is an active recurring donor. Since this is for MCAE, I could use the Donor Gift Summary (client as custom object integration), but it still feels challenging to easily identify active recurring donors at a glance. Do you have any suggestions?

0/9000
3 answers
  1. Today, 5:06 PM

    To configure an action for your Einstein Agent to retrieve or modify external object records, first ensure the external data is accessible in Salesforce—either via Salesforce Connect or a custom Apex integration using HTTP callouts and Named Credentials. Then, create an Apex class with @InvocableMethod or a Flow that handles the external interaction. 

     

    Expose this Apex or Flow as an Action in Prompt Builder, configure its inputs and outputs, and use it in a Prompt Template with appropriate bindings (e.g., recordId = {!Case.AccountId}). This allows the agent to call the action during chats to retrieve or update data from the external system. Make sure the agent has access permissions and that any external authentication is properly set up

0/9000
4 answers
0/9000
HI,

 

I am trying to use  lightning scheduler to schedule an appointment.While I am doing the booking process , the time slots are not visible on the booking page.I can only see the days of the week and service resource.Please can someone help what it could be, that is preventing the timeslots from being displayed on the schedule appointment page
2 answers
  1. Today, 4:48 PM

     

    Give this permission set to service resource user  

    Give this permission set to service resource user

     

    Screenshot 2025-06-29 at 10.13.29 PM.png

     

     

0/9000
When we create a sandbox we have several WorkFlowOutbound message-setting from which the url needs to be changed.

As a manual process this is hard work, so I tried with Salesforce DX to retrieve this with the following command :

sfdx force:source:retrieve --metadata WorkflowOutboundMessage

But I don't receive any result. 

I also already tried with Illuminated Cloud which shows the info when indicating which meta-data to retrieve, but in the end it is not retrieved at all
4 answers
  1. Today, 4:44 PM

    I hit the same windshield. When I tried to retrieve all WorkflowOutboundMessage metadata, I got  

     sf project retrieve start --metadata WorkflowOutboundMessage 

     

     â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ Retrieving Metadata ────────────── 

     

     Retrieving v61.0 metadata from [source org ] using the v64.0 SOAP API 

     

     âœ” Preparing retrieve request 10ms 

     âœ” Sending request to org 243ms 

     âœ” Waiting for the org to respond 4.88s 

     âœ” Done 0ms 

     

     Status: Succeeded 

     Elapsed Time: 5.13s 

     

     Â»   Warning: Nothing retrieved

     

     

    But just as a lark, I decide to try grabbing just 

    one

    of the messages, and... 

    sf project retrieve start --metadata WorkflowOutboundMessage:[API Name of outbound message] 

     

    ────────────── Retrieving Metadata ────────────── 

     

    Retrieving v61.0 metadata from [source org] using the v64.0 SOAP API 

     

    ✔ Preparing retrieve request 13ms 

    ✔ Sending request to org 243ms 

    ✔ Waiting for the org to respond 909ms 

    ✔ Done 0ms 

     

    Status: Succeeded 

    Elapsed Time: 1.16s 

     

    Retrieved Source 

    │ State   │ Name                   â”‚ Type     â”‚ Path                                                                      │ 

    │ Created │ [Related sObject] │ Workflow │ force-app\main\default\workflows\[Related sObject].workflow-meta.xml │ 

     

    This didn't actually retrieve the 

    message, it retrieved the entire workflow

    , but when I look in the metadata I see  

    <outboundMessages> 

          ...all the stuff from the outbound message I just retrieved... 

    </outboundMessages> 

    But herein lies the problem. If I do that again with the 

    other

    message for the same object, it overwrites the first one.  

    So. 

    I try the same retrieve with only the sObject name, and it can't find it because it doesn't exist. Fair enough, there's no Outbound Message that has that name, so I try  

    sf project retrieve start --metadata Workflow:[Relevant sObject] 

     

    That works, as far as it goes, but it retrieves

    everything -- both of my outbound messages, plus what appears to be actions from an Approval Process, which I suppose scans because there is an approval process for this object (actually there are three

    approval processes for this object...). Somehow the approval processes got into the package, but he workflows didn't? I suppose they were already deployed everywhere so there wasn't a dependency issue, and nobody ever noticed they were missing ('cause they weren't actually missing, were they?). 

     

    So in theory, all I would have to do is import the entire workflow for each affected object, and I'd get everything. I'm not sure how anxious I am to do that on some of these, since who knows what other dependencies that would create, but now I know where they live, I can attack that as a separate story, use the change set to deploy what I need and circle back to it "in my spare time". 

     

    If that's not workable, or if you just need to update the urls on all of the messages in place, you

    should

     be able retrieve the workflow, update the UR;ls in the outbound message elements and then deploy it back to the org, not retaining a local version if you're worried about a depedency issue. Just put it on a separate branch that never gets packaged. 

     

     

0/9000