To allow Guest Users to access Salesforce Surveys sent via email when merge fields are used, update the Merge Field Variables setting to use System Context (which ignores record-level access):
- Navigate to the affected survey in Salesforce.
- Click Open Latest Version.
- If the survey is currently activated, go to the View tab and select Create New Version from the dropdown menu in the top-right corner.
- Open Advanced Settings and click Merge Field Variables.
- Set Merge Field Variables to System Context – Ignore record-level access.
- Save and activate the survey.
#Trailhead Challenges1,170 debatiendo
- Actividad reciente
- Fecha de creación
- Recomendado
- Todas las preguntas
- Preguntas con una respuesta aceptada
- Preguntas sin respuesta
- Preguntas sin respuesta aceptada
A Record-Triggered Flow updates related records whenever an Opportunity is modified, even when unrelated fields change. How would you optimize the Flow using entry conditions, decision elements, and execution settings to improve performance and avoid unnecessary updates?
#Trailhead Challenges #Flow14 oct, 4:03 p.m. Hi @Durga Prasad Karnaty I would first check why the Flow is running on every Opportunity update.
A few things I would suggest:
- Entry Conditions: Run the Flow only when required conditions are met.
- Run Settings: Use "Only when a record is updated to meet the condition requirements" where applicable.
- Check Field Changes: Compare $Record and $Record__Prior to identify changes.
- Decision Element: Continue only when relevant fields have changed.
- Avoid Unnecessary Updates: Update related records only when needed.
Best Practice: Filter records early and avoid unnecessary DML operations to improve Flow performance.
Hope this helps!
Hi everyone,
I'm completing the Trailhead module "Build with Agentforce Builder" and I'm stuck while creating the custom actions for the Experience Management subagent.
I created the flows provided in the playground:
- Get Experience Details
- Get Customer Details
Both flows are Active and have the expected variables configured.
Get Experience Details
- experienceName – Text, Available for Input
- experienceRecord – Record (Experience__c), Available for Output
Get Customer Details
- email – Text, Available for Input
- memberNumber – Text, Available for Input
- contact – Record (Contact), Available for Output
However, when I configure the custom actions in Agentforce Builder and enable Require Input to execute action or Show in conversation, I receive the following validation errors:
'email' is not a defined input of action 'Get_Customer_Details'
'memberNumber' is not a defined input of action 'Get_Customer_Details'
Action input 'experienceName' in 'Get_Experience_Details' has primitive type 'string' and does not require 'complex_data_type_name'. Only 'object' and 'list[object]' types require 'complex_data_type_name'.
Missing type for inputs 'email'. Expected a type after: (string, number, boolean, object, currency, ...)
Empty 'inputs' block — must contain at least one entry
Missing type for outputs 'contact'. Expected a type after: (string, number, boolean, object, currency, ...)
Empty 'outputs' block — must contain at least one entry
I've already tried:
- Verifying all Flow variables and their Input/Output settings.
- Confirming both Flows are Active.
- Removing and recreating the custom actions.
- Refreshing Agentforce Builder.
The Flow definitions appear to be correct, but Agentforce Builder continues to show these validation errors.
Has anyone experienced this in the Agentforce Builder Playground? Is this a known issue with the current Trailhead playground, or is there an additional configuration step I'm missing?
Any help would be greatly appreciated. Thanks!
#Trailhead Challenges
25 oct, 10:13 p.m. Hi Shubham, those errors mean the action's input/output schema is empty, so Agentforce Builder isn't seeing your flow variables. That usually happens when the action was created before the flow version with those variables was saved and activated, and the action keeps the old schema. Try this:
1) In Flow Builder, open each flow and confirm the active version has the variables marked Available for Input/Output, with API names exactly email, memberNumber, experienceName, contact, experienceRecord.
2) In Agentforce Builder, delete the two custom actions, refresh the page, and create them again from the flows. The inputs and outputs should now fill in automatically.
3) Only after they appear, set Require Input and Show in conversation. Don't add a complex data type to the text inputs; that's only for record/object types.
4) Save, then commit or activate the agent version before checking the challenge.
Hope this helps!
Hi everyone,
I have learned Salesforce Admin fundamentals through Trailhead and now want to start Salesforce Development.
I see topics like SOQL, Apex Classes, Triggers, Collections, and Governor Limits.
I am not sure which topic I should learn first or how much programming knowledge is required.
For someone starting Apex, what learning order would you recommend? Also, which concepts are most important for real-world development?
Looking forward to your advice!
#Trailhead Challenges
19 oct, 10:45 a.m. Hi @Chaitanya d
Good question! Since you already know Salesforce Admin basics, you can start learning Apex. You don't need advanced programming knowledge to begin.
1. Recommended Learning Order:
- Apex Basics: Variables, Data Types, Conditions, and Loops.
- Collections: List, Set, and Map.
- SOQL & DML: Retrieve, Insert, Update, and Delete records.
- Apex Classes: Methods, Constructors, and OOP basics.
- Triggers: Before/After Triggers and Context Variables.
- Governor Limits: Bulkification and efficient coding.
- Test Classes: Unit Testing and Code Coverage.
- Advanced: Async Apex, REST APIs, and Integrations.
2. Real-World Practice:
- Write an Apex class to retrieve Account records.
- Create a Trigger to update related Contact records.
- Practise handling 200 records in a single transaction.
Focus more on SOQL, Collections, Governor Limits, Bulkification, and Debugging. These are very important in real-time Salesforce development.
Salesforce Documentation:
Related Trailblazer Discussions:
Start with small coding exercises and gradually move to business requirements.
All the best for your development journey!
#Trailhead Challenges #Apex#Suppose an Apex Trigger processes 200 records at once and fails because of governor limits. How would you redesign the code to handle bulk records efficiently?
13 oct, 4:51 a.m. Hi @Rohith thammali To handle 200 records efficiently, I would focus on bulkifying the Apex Trigger.
A few best practices I follow:
- Avoid SOQL and DML inside loops to prevent governor limit errors.
- Use Trigger.new to process all records together instead of one by one.
- Use Sets and Maps to collect record IDs and retrieve related data efficiently.
- Perform bulk DML operations using a List instead of updating records individually.
- Use a Trigger Handler Class to keep the logic organized and maintainable.
- Test with 200 records to verify bulk processing and governor limit usage.
Always design a Trigger to handle multiple records, even if the requirement initially involves only one record.
This approach improves performance and makes the code more scalable and easier to maintain.
Hope this helps!
Body: Hello Trailblazer Community,
I am stuck on the "Communicate Using the Action Element" challenge in Flow Builder.
I keep getting this exact error when verifying the challenge:
I have created the ChatterMessage text template, set it to "View as Plain Text", and used the syntax @[{!$Record.OwnerId}] your account record has changed. (or the correct matching record variable), but the challenge still fails to find the mention.
Could anyone please guide me on what might be wrong with my syntax or setup?
Thank you so much for your help!
#Trailhead Challenges
i have followed all the steps correctly but still error persists: In the Opp Field element, we can't find the 'Name' field related to 'oppVar' variable.
#Trailhead Challenges
Divya Chauhan Forum Ambassador
22 sep, 9:23 a.m. Mostly the record variable isn't properly configured to reference the Opportunity object, or the "Name" field isn't being pulled correctly because of how the variable/resource is set up in the Screen Flow's element.
I hope this help!!
21 sep, 1:33 p.m. Hi Paka,
This issue usually happens because the resource you are looking for is either a record collection (which cannot be directly inserted into a text template as a single string without looping) or the scope/type of the variable doesn't match what the text template expects.
To fix this:
- Check your Toolbox to confirm whether the missing resource is defined as a Record Collection Variable instead of a single Record Variable or Text variable.
- If it is a collection, you will need to use a Loop element or a custom text template loop to iterate through the items before inserting them.
- If it's a single record or variable, ensure it was created prior to the text template element in your flow's execution path and that its availability/access is set correctly.
Hello Trailblazers
Superbadge: Advanced Flow for Agentforce- Challange 3 unable to complete please help me am getting below error
"Challenge Not yet complete... here's what's wrong:
We can’t find the filter conditions specified for Order ID and Product Name in the Refund Request Flow’s Get Order Line Item element. Make sure the filter matching criteria sets the Order ID (OrderId) to the record ID {!Get_Current_Order.Id}, not a related record's ID."
21 sep, 1:30 p.m. Hi Lakshmi,
This error happens in Challenge 3 because the filter criteria inside the Get Order Line Item element is referencing a related record's ID rather than the direct record ID variable specified in the challenge instructions.
To fix this:
- Open your Refund Request Flow in Flow Builder and click on the Get Order Line Item element.
- Check the filter conditions where Order ID (OrderId) is evaluated.
- Ensure the value is set strictly to {!Get_Current_Order.Id} rather than a related path or secondary lookup variable.
- Save the flow as a new version, activate it, and then re-run the challenge check.
Hello Salesforce Community,
I'm working through the Agentforce Service Assistant Trailhead module and I'm stuck at the "Define Service Plan Eligibility Criteria for Cases" step.
Here's what I've done:
- Opened the Check Service Plan Eligibility flow template.
- Saved it as a new flow named Travel Documentation.
- Configured the required variables:
- caseId (Input)
- meetsEligibility (Output)
- ineligibilityReason (Output)
- Activated the flow.
- Deactivated and recreated it multiple times.
- Verified it's an Autolaunched Flow.
- Tried Save As New Flow and Save As New Version.
- Waited and refreshed the page.
However, when I go to Setup → Service Planner → Define Service Plan Eligibility Criteria for Cases, my flow does not appear in the Flow Label dropdown. Only the standard sample flows are listed.
I've attached a screenshot of the dropdown showing the available flows.
Has anyone encountered this issue? Is there an additional requirement (such as marking the flow as a template or another configuration) that I'm missing, or could this be a Trailhead/Developer Edition issue?
Any help would be appreciated. Thank you!
#Trailhead Challenges
15 sep, 8:01 a.m. Hi Karthik, your configuration actually looks exactly right — "caseId" (input), "meetsEligibility" (output), "ineligibilityReason" (output) is precisely the naming Salesforce's own Trailhead walkthrough for this exact module (Configure Your Service Assistant for Success) specifies, and "Travel Documentation" is the exact flow name used in that guide too. So you haven't misconfigured anything.
Before assuming it's a bug, try this first — it's the single most common cause: **actually type into the search box** rather than scrolling the list. That dropdown is a lookup/typeahead component. What's shown by default (Create Experience Session Booking, Get Customer Details, etc.) is just a "recently used/default" list — it is NOT the full list of eligible flows. Click into the "Select or search..." field and type "Travel" or "caseId" — it should search server-side across all flows rather than relying on the pre-loaded default list. This trips up a lot of people because the default list looks like "all available options" when it isn't.
If typing to search still doesn't surface it, then check these in order:
1. Variable "Available for..." flags — In Flow Builder, open each variable (caseId, meetsEligibility, ineligibilityReason) and confirm caseId has "Available for input" checked, and meetsEligibility/ineligibilityReason have "Available for output" checked. This is the #1 reason a technically-correct flow doesn't show up in these kinds of pickers — the visibility flags, not just the variable existing.
2. Data types — caseId must be Text (not Record/Text Collection), meetsEligibility must be Boolean, ineligibilityReason should be Text. A mismatch here silently excludes the flow from the filtered list.
3. Metadata cache lag — Setup's flow lookup sometimes lags a newly activated flow by 15–30+ minutes due to search index propagation, separate from the flow actually being active. Since you've already waited and refreshed, try logging out completely and back in (not just refreshing the page) to force a fresh session/cache.
4. Confirm via Setup → Flows directly that "Travel Documentation" shows status Active (not just "saved") — a flow can look active in the builder canvas but the list view is the authoritative status check.
If after typing to search and confirming all of the above it's still missing, it's reasonable to suspect a Trailhead Developer Edition-specific bug — worth reporting via Salesforce Help > Trailhead Help alongside a screenshot showing the variable configuration, since a moderator override needs that platform-side confirmation rather than just a community fix.
Reference:
https://trailhead.salesforce.com/content/learn/modules/agentforce-service-assistant/set-up-service-assistant