Skip to main content

#Trailhead Challenges1,170 discussing

Hands-on challenges are the “secret sauce” of Trailhead. Before searching for solutions to superbadge challenges, review the Salesforce Certification Program Agreement and Policies. ** NOTE ** : If you were able to get a response that solved your issue, please mark it as the 'Best Answer' to help other Trailblazers. If the issue persists after 48 hours, create a Trailhead Help case at https://help.salesforce.com/s/support for further assistance.

Has anyone else had an issue with the Developer Education Cloud demo org on the 'Create a Learning Course' trailhead. I have followed the instructions but get stuck on step 7b. When I type anything in the search bar, no results populate. I tried searching for 'Computer Science' but nothing shows. 

Create a Learning Course Trail Issue

 

 

 

#Trailhead Challenges  #Trailhead  #Education Team

6 answers
  1. Oct 21, 10:21 PM

    I had a support call today with Salesforce -- in the latest Winter '27 release, there is a new course versioning process and a new Status field, as well as a new, inactive-by-default flow called "EDU Course Operations: Update Learning Status" (that I don't think I even see in my demo org?). 

     

    To set the Status, I had to add the Status field to the Learning page layout and then update the relevant Learning records to a Published status. Those courses then show up when searching for courses in the Learning Wizard, Program Plan Builder, and Learner Pathway Builder. 

     

    Info around this Winter '27 feature/change is documented here: 

    https://help.salesforce.com/s/articleView?id=sfdo.ec_create_another_learning_course_version.htm&type=5

     

    I'm going to investigate this a bit more, as I'm worried this has a significant impact on existing orgs. I've been told that the Salesforce Education Cloud team is aware of this and working on updated documentation. 

We can use Flow to automate tasks, and Agentforce can also perform tasks through actions.

I'm interested to know how you see the difference between them in real projects. When would you use an Agentforce Action instead of a traditional Flow-based solution? 

 

#Trailhead Challenges

1 answer
  1. Oct 18, 4:55 PM

    Hi @Tejaswini M Good question! From my experience, Agentforce Actions and Flow serve different purposes, but they can work together.

    The main difference is how and when they execute business logic.

    A few key differences:

    1. Salesforce Flow: Automates business processes based on predefined logic, record changes, schedules, or user actions.
    2. Agentforce Actions: Allow AI agents to execute specific tasks based on user requests and conversation context.
    3. Execution: Flow follows defined steps, while Agentforce can select the appropriate action based on the user's request.
    4. Business Logic: Flow handles the actual automation, while an Agentforce Action can call Flow, Apex, or other supported functionality.
    5. Reusability: Existing autolaunched Flows can be exposed through Agentforce Actions without rebuilding the business logic.

    When to use what?

    • Use Flow for predefined, scheduled, and record-triggered business automation.
    • Use Agentforce Actions when users need to perform tasks through natural language or when an AI agent needs to select and execute an operation.

    Useful Salesforce Documentation:

    Related Trailblazer Discussions:

    My view: Agentforce Actions don't replace Flow. They provide an intelligent way for agents to use existing business functionality.

    In simple words, Agentforce decides which action to run, and Flow can perform the actual business operation.

We have third party site which creates a Web-to-case and we wanted to attach the image files to the case. The site is open to all in internet. So how to attach the image file securely in salesforce. 

 

#Salesforce Developer  #Trailhead Challenges  #TrailblazerCommunity  #Service Cloud

3 answers
  1. Oct 16, 9:25 AM

    Hi @kallimulla Abdul Kadhar, 

    Standard Web-to-Case can’t carry attachments. The form it generates posts plain form fields, not multipart uploads, and it never creates ContentVersion records. The one answer on that thread says the same. Since your site is open to the internet, the safe approach is to keep the file upload off the Salesforce side of the public boundary until the file has been vetted.  

     

    Recommended pattern: your site’s backend handles the upload and calls Salesforce with an authenticated integration user 

    1. Browser → your backend. The site’s own server receives the image. It validates the file before anything reaches Salesforce: 
      • Allow-list of types, checked by magic bytes and not just the extension (JPEG/PNG/WebP/GIF, and no SVG, since SVG can carry script).
      • Hard size limit and a limit on the number of files per case.
      • Malware scan (ClamAV or a cloud scanning service).
      • Bot protection and rate limiting (reCAPTCHA/Turnstile, per-IP throttling).
    2. Backend → Salesforce, authenticated. Don’t use Web-to-Case for this flow. Create the Case through the REST API, using an OAuth Connected App / External Client App (client-credentials or JWT bearer flow) as a dedicated integration user. 
      • The credentials stay on your server and are never exposed in the browser.
      • Give the integration user a minimal permission set: create Case, create ContentVersion, and nothing else.
    3. Attach the file via REST: POST a ContentVersion (base64 body for small files, multipart for larger ones), then a ContentDocumentLink to the Case. Or use the Composite API to create the Case and attach the file in one call.
    4. Case ID handling. Never let the browser pass a Case ID that it supplies. The backend should use the ID returned from its own Case creation.

    Alternatives: 

    An Experience Cloud site with a Case form and the file upload component fits if the site can be replaced or embedded. It’s native to Salesforce, but the Guest User risk is real, so prefer authenticated external users over Guest access.  

     

    An Apex REST endpoint (@RestResource) fits if you need custom validation inside Salesforce. The caller still has to be authenticated, so don’t expose the endpoint to the Guest profile.  

     

    Uploading to S3 or Azure Blob and storing a link on the Case fits high-volume or large-file scenarios. The files then live outside Salesforce, so access control and retention become your responsibility.  

     

    Email-to-Case works if users can email their attachments, but sender verification is weak and attachment limits apply.  

     

    The backend-plus-REST-API approach remains the strongest option on security, but it needs developer work on the third-party site.  

     

    Avoid 

    • Exposing an Apex REST endpoint or Visualforce page to the Guest User profile to accept uploads. Guest access is the most common source of Salesforce data exposure, and an open file-upload path invites abuse and storage exhaustion.
    • Storing credentials in client-side JavaScript.
    • Trusting the filename or content type sent by the client.

    Other points

     

    • Files in Salesforce count against your file storage limits, so size caps matter.
    • Decide whether the images need to be visible to the customer later, since that changes the sharing setup (ContentDocumentLink visibility).
    • Consider async scanning: store the file in a quarantine state until the scan passes, then attach it.

    I hope you find the above information helpful. If it does, please mark it as Best Answer to help others too.

Hi Everyone, 

 

I'm a Salesforce Administrator currently learning about SharePoint and Salesforce integration for document management, and I'd love to learn from your experience. 

 

I'm interested in understanding how organizations use SharePoint with Salesforce to manage documents, folders, security, and document access efficiently. I'm also curious about best practices for folder structures, metadata synchronization, version control, and providing a smooth user experience. 

 

As I'm still exploring this area, I would greatly appreciate any insights, recommendations, or lessons learned from real-world implementations. 

 

Looking forward to hearing your ideas and experiences. Thank you! 

 

#Trailhead Challenges #Salesforce Developer #Salesforce Admin #Salesforce #Sales Cloud #Trailhead

 

#Sales Cloud #Flow #Integration 

2 answers
  1. Oct 15, 6:27 AM

    @Roopa Sharma, This is a good area to learn early. Many orgs end up with documents in both systems, and the friction shows up exactly where you listed. Here is how each one tends to play out once a setup is live.  

     

    1. Where the documents live - 
      • SharePoint as the home, with Salesforce records pointing to it. The usual choice when the company already runs on Microsoft 365.
      • Salesforce Files, when volumes are small and only CRM users need the documents. The Files related list is flat, with no folders per record.
    2. Ways to connect the two
      • Files Connect (native): lets users browse, search and attach SharePoint files from Salesforce, but it does not create a folder per record.
      • Power Automate: a good fit if your team already builds on the Microsoft side. The trade-off is that the logic lives outside Salesforce, on a premium connector. 
      • AppExchange apps: compare them on four things. Does Flow create a folder when a record is created? Do uploads from the record go straight to SharePoint? Do SharePoint's own permissions still apply? Can you trial it in a sandbox first? 
    3. Your questions, in practice - 
      • Folder structure: mirror your data model (Account, then Opportunities, then each opportunity), with the same subfolders on every record. Add the record ID to folder names so a rename never breaks a link. 
      • Metadata: tag files with SharePoint columns such as document type, status and record ID, instead of relying on folder names.
      •  Version control: let SharePoint's version history handle it, and avoid saving copies back into Salesforce. 
      • Security: SharePoint decides who can open a file. Salesforce sharing does not carry over to SharePoint on its own, so plan who updates access when an account changes owner.
      • User experience: users should reach a record's folder from the record page, without searching SharePoint.

    If you go the AppExchange route, CloudFiles is one app that works this way with SharePoint. With its flow actions, each record gets a folder when it's created, and files are tagged as they arrive. Users open that folder from the record page, and SharePoint's permissions decide what each person can see. https://appexchange.salesforce.com/appxListingDetail?listingId=a0N4V00000Gh9uFUAR

      

    Disclosure: I work at CloudFiles.

  #Trailhead Challenges #Trailhead #Salesforce Admin #Salesforce Developer

 

I’m a final-year B.Tech student learning Salesforce. Is it useful for a fresher to learn Agentforce along with Admin and Development? What Agentforce concepts should I start with? 

3 answers
  1. Oct 9, 2:48 PM

    Hi @Srujan Gandla

     

    Yes, learning Agentforce is a good choice for freshers, especially with the growing demand for AI skills in Salesforce.

    But I suggest getting comfortable with Admin and Development basics first. 

     

    Focus on these key topics:

    1. Agentforce Basics: Understand what Agentforce is and how AI agents work.
    2. Agent Builder: Learn how to create and configure agents.
    3. Subagents and Actions: Understand how agents perform different tasks.
    4. Prompt Builder: Learn how to create prompt templates.
    5. Flow and Apex: Understand how agents interact with Salesforce records.
    6. Data 360: Learn the basics of connecting business data with Agentforce.

    My suggestion: Build a simple Employee Support Agent or Customer Support Agent and practice it in a Salesforce org.  

    Don't just focus on Trailhead badges. Try to build something on your own. 

     

    Strong Admin and Development basics, along with Agentforce skills, can help you stand out in interviews.

    All the best!

Module: Custom Metadata Types Basics

Unit: Use Custom Metadata Types in Formulas, Default Values, and Validation Rules

Hands-On Org Name: CRM Training

Error Message:

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

 

Description:

The automated verification script is failing with an unexpected error when attempting to insert/update test Account and Opportunity records in my playground . Please assist in resolving or clearing the backend check state for this org. 

 

#Trailhead Support  #Trailhead Challenges  #Salesforce Admin  #Salesforce Developer

4 answers
  1. Sep 30, 6:36 AM

    Hi @Abhay Ram Solanki

     

    This looks like a Trailhead verification/backend issue. Please first verify that Account and Opportunity records can be created and updated manually, and check that no Validation Rules, Flows, Triggers, or permissions are blocking these operations. If everything works correctly in the Playground but the challenge still fails, I’d recommend contacting Trailhead Support to check the backend verification state.  

     

    Hope This Helps!!

#Trailhead Challenges #Trailhead #AI

 

Trailhead gives good hands-on practice, but how can a student create experience that is closer to working on a real Salesforce project? 

3 answers
  1. Oct 8, 9:59 AM

    Hi @Chandra Shekar

     

    Good question! Trailhead is a great place to learn Salesforce, but working on complete projects will help you understand how things work in real companies. 

     

    Here are a few things I would suggest:

    1. Build Real-Time Projects: Start with projects like Student Management, Recruitment Management, or Customer Support Management.
    2. Understand Requirements: Don't just create objects and fields. Think about the actual business problem you're trying to solve.
    3. Practice Admin & Development: Work with security, Flows, validation rules, Apex, SOQL, and LWC based on project requirements.
    4. Work on Real Scenarios: Practice bulk data uploads, error handling, record sharing, and approval processes.
    5. Use GitHub: Upload your project code, requirements, screenshots, and documentation.
    6. Join the Community: Participate in Salesforce community discussions, developer groups, and hackathons.
    7. Practice Team Work: Learn how Jira, Agile, Scrum, Git, and deployment processes work.

    My suggestion:

     Pick one project and complete it from requirement gathering to development, testing, and deployment. 

     

    For example, build a Recruitment Management application where recruiters can manage candidates, schedule interviews, and track hiring status. 

     

    Most importantly, during interviews, you should be able to explain what you built, why you built it, and how you solved the challenges. 

     

    A complete hands-on project can give you much better practical understanding than completing multiple Trailhead modules alone.

    Hope this helps!

Hi everyone,

I’m looking for some architectural input on a record visibility design for a multi-subsidiary arquitecture. 

 

Context:

  • Account and Quote OWDs are set to Private.
  • An ERP integration creates Quote records linked directly to QuoteAccountId (field when you activate the feature "Create Quotes without Opportunities"
  • All sales users share the same Profile and Role and public groups BUT
  • Field Sales users should only see Quotes linked to Accounts they own, provided the Quote and Account regions (e.g. Spain, France, etc.) match.

Current Solution:

To distinguish Field Sales users from back-office users, I created dedicated Public Groups per region (e.g. Group_FieldSales_RegionA, Group_FieldSales_RegionB).

A Record-Triggered Flow checks whether the Account Owner belongs to the corresponding Field Sales group. If so, the Flow creates a QuoteShare record for that user.

Importantly, these Public Groups created for the Field Sales users are not used in Sharing Rules

. They are only used by the Flow as an internal validation mechanism to identify whether the Account Owner is a Field Sales user. This is also important for managers with hybrid responsibilities, who may belong to both Field Sales and back-office groups (they are everywhere in every public group with execption of my newly created Field Sales public groups) 

 

Architectural Question:

There is a concern of non-developer members about using Public Groups and believes visibility should be based purely on Account Ownership.

  1. Would you consider using Public Groups as an internal identity/validation mechanism in Flow a sound architectural approach in this scenario?
  2. If Public Groups cannot be used, what would be a robust alternative for a Flow to identify Field Sales users, given that Profiles, Roles and public groups are shared and some users have hybrid responsibilities (Sales Managers are inside and outside at the same time)?

I’d appreciate your thoughts on the best practice for this design.

Thanks in advance! 

 

@Salesforce Administrators & Developers, @Salesforce Administrators and Developers, @APAC Architects, @Data Quality & Management, @Ladies Be Architects

 

 

#Trailhead Challenges  #Trailhead  #Salesforce Developer  #Salesforce Admin  #Solution Architects  #Architects  #Enterprise Architecture  #Flow  #Security

4 answers
  1. Oct 6, 4:13 PM

    @Lena Wong

    You're right the business rule doesn't care who owns the Quote. The risk comes from how the platform stores the share, not from the rule. 

     

    Where the Quote owner matters (platform mechanics, not business logic) 

    A Flow created QuoteShare is a manual share (row cause "Manual"). Salesforce deletes manual shares on a record when that record's OwnerId changes. Your Flow most likely triggers on events like Quote created or Account owner changed. A Quote owner change isn't one of those events, so: 

    1. The ERP (or a user or mass transfer) changes the Quote's owner.
    2. The platform silently deletes the share the Flow created.
    3. Nothing re-runs the Flow, so the Account Owner loses access even though the business rule says they should have it.

    Fixes, in order of preference: 

     

    • Add a trigger path on Quote update when OwnerId changes, so the Flow recreates the share.
    • Add a scheduled reconciliation that compares expected and actual shares. This also catches other drift.

    A related edge case:

    if the Account Owner is also the Quote owner, they already have access. The Flow should skip creating the share in that case, because inserting a share for the owner is rejected or ignored. 

     

    If the ERP never changes Quote ownership

    (it creates Quotes under a fixed integration user and never updates them), this risk mostly goes away, and the Account owner, region, and bulk-load gotchas are what remain. I can't confirm that from here, so it's worth asking the ERP team. 

     

    On the permission set groups

     

    If every sales user is in the same Permission Set Group, that group can't tell Field Sales from back-office, so it doesn't help as the identifier. Option 2 only works with a separate, standalone permission set (for example

    Field_Sales_Spain) assigned directly to Field Sales users and not included in the shared group. Hybrid managers just get that one assigned too.

I complete all the steps, and my end result is working as expected (screenshot below), but it still doesn't pass me: "The 'Translate Survey Input' action is either missing, named incorrectly, or not positioned after the existing Get elements in the 'Translate Fitness Survey Input' flow. Review the 'Work with the Prompt Template in a Flow' scenario and related Help article for element configuration."

 

Agentblazer Innovator | Superbadge: Translate Text with a Prompt Template and Record-Triggered Flow

 

I've started from scratch a few times and used a new org, but no luck. Can anyone help? Am I missing something? 

 

Screenshots from my setup: 

 

Screenshot 2026-10-02 at 4.02.40 PM.png

 

 

Screenshot 2026-10-02 at 4.02.57 PM.png

 

 

Screenshot 2026-10-02 at 4.03.50 PM.png

 

 

 

 

 

 

#Trailhead Challenges  #AgentblazerInnovator  #Trailhead Superbadges  #Prompt Builder  #Flow

4 answers
  1. Eric Burté (DEVOTEAM) Forum Ambassador
    Oct 2, 10:02 PM

    Hello @Caroline Fearey concerning the action, check your API name; it is written " Label the action Translate Survey Input with API name Translate_Survey_Input using any description you’d like". Yours has an extra "Fitness" in it.Hello concerning the action, check your API name; it is writtenEric

Hi Salesforce Community,

We are currently working on an Agentforce-based Knowledge Article generation use case and would appreciate recommendations from anyone who has implemented something similar.

Our objective is to automatically generate accurate, reusable, customer-facing Knowledge Article drafts from resolved Salesforce Cases, with the eventual goal of using those articles for customer self-service and case deflection.

Our current implementation uses Salesforce Prompt Builder and Agentforce capabilities. The Case information is supplied as grounding context, and the generated Knowledge Article is primarily focused on:

Title

 

Summary

 

Content / Resolution

The Resolution is especially important for us. We want the generated article to accurately represent the actual outcome of the Case and distinguish whether it resulted in a:

  •  Final Solution 
  •  Workaround 
  •  Improvement 
  •  Enhancement / Feature Request 

At the same time, the model should remain strictly grounded in the Case information and should not infer or introduce unsupported technical details.

One of the main challenges we are currently investigating is how to provide the model with the complete and relevant Case context.

Important information can be distributed across several Salesforce sources, including:

  •  Case Subject and Description 
  •  Case Comments 
  •  Email Messages 
  •  Work Notes 
  •  Resolution Notes 
  •  Related records or conversations 
  •  Other Case-related supporting information 

We have observed situations where useful information exists in the Case context but is not fully reflected in the generated Knowledge Article.

We also want to prevent the opposite behavior, where the generated article introduces resolution steps, troubleshooting, or technical information that is not actually supported by the Case.

We are therefore looking for guidance on the Salesforce-recommended or out-of-the-box approach for this type of implementation.

Specifically, we would appreciate input on the following:

  1.  Is Einstein Knowledge Creation / the standard “Create Knowledge Articles From Case” Prompt Builder template the recommended approach for automatically generating Knowledge Articles from resolved Cases? 
  2.  What is the recommended way to provide the complete Case context, including related information such as Case Comments and Email Messages, to a Knowledge Generation prompt without manually combining everything into one large input? 
  3.  For a Knowledge Generation Prompt Template using Case as the grounding record, what additional Salesforce-supported data sources or related resources are typically recommended? 
  4.  Is there an out-of-the-box Salesforce approach for reliably identifying and generating the actual resolution from a resolved Case while keeping the output strictly grounded? 
  5. Has anyone implemented prompt logic that successfully distinguishes between:
    •  Final Solution 
    •  Workaround 
    •  Improvement 
    •  Enhancement / Feature Request 
  6. without causing the LLM to over-infer or classify an unsupported outcome?
  7.  What are the recommended Prompt Builder techniques for ensuring that generated Knowledge Articles remain: 
    •  Accurate 
    •  Grounded 
    •  Customer-friendly 
    •  Reusable 
    •  Resolution-focused 
    •  Suitable for customer self-service and case deflection 
  8.  If the standard Knowledge Creation functionality is not sufficient for this use case, are there recommended approaches using Flow, Prompt Builder, Agentforce, Data 360, related record grounding, or Retrievers that work well for generating complete Knowledge Articles from Salesforce Cases? 
  9.  Are there any existing Salesforce templates, accelerators, AppExchange solutions, or recommended implementation patterns that could help avoid building a heavily customized solution from scratch? 

We are particularly interested in hearing from anyone who has implemented a production workflow similar to:

Resolved Salesforce Case → Grounded Case Context → AI-Generated Knowledge Article → Agentforce / Customer Self-Service

Any implementation examples, best practices, known limitations, configuration recommendations, or workarounds would be greatly appreciated. 

We would also appreciate any

out-of-the-box approaches, alternative implementation patterns  beyond the standard Salesforce capabilities currently available.

If anyone has successfully implemented a different approach for generating high-quality, grounded Knowledge Articles from Cases, we would be very interested in learning about the architecture, tools, or configuration used

Thank you in advance for your guidance. 

 

#Agentforce  #Salesforce  #TrailblazerCommunity  #Trailhead Challenges

1 answer
  1. Sep 25, 10:17 AM

    Hi Bijay, 

     

    On Q1: this has actually changed. Einstein Knowledge Creation now supports custom Prompt Templates via the "Knowledge Generation" type in Prompt Builder — not limited to the single default case-only template anymore. Build a custom template tailored to your use case; that's the current recommended path. 

     

    For pulling in Comments/Emails/Work Notes without manual concatenation: 

    - Flow-based grounding: attach a Flow as a grounding resource in Prompt Builder — it queries related records and feeds them in structured, instead of one giant merge field. 

    - Retrievers (Data Cloud): for larger/unstructured volumes, index content into a Data Library and use a Retriever (via Einstein Studio) for semantic retrieval instead of dumping everything into one flow output. 

     

    For grounding accuracy / avoiding invented resolution steps: 

    - Add an explicit negative instruction in the prompt: "Only use information present in the provided context. Do not infer steps not explicitly stated." This measurably reduces over-inference. 

    - Split classification from generation — use a separate Field Generation prompt just to classify Final Solution/Workaround/Improvement/Enhancement (same context), then pass that result into the Knowledge Generation prompt. Two narrow prompts outperform one prompt doing both. 

    - Add 2–3 labeled few-shot examples of each resolution category in the prompt instructions — this taxonomy is business-specific, so there's no built-in classifier; examples are what actually stabilize classification. 

     

    No native accelerator exists for the resolution-type classification specifically — that part is custom prompt engineering, not a toggle. 

     

    Reference:

    https://help.salesforce.com/s/articleView?language=en_US&id=release-notes.rn_knowledge_creation_custom_prompts.htm&release=264&type=5