Skip to main content

#Flows48 人がディスカッション中

I am on the second step of this Superbadge and have run into two separate issues. I have walked through this configuration in two separate developer environments, with the same issues: 

 

1. Prompt Template validation:  

When I create the specified prompt template (Translate Survey Input), I update the [Survey Input Field] with the dynamic value of Input.Fitness.Survey_Input__c using the 'Insert Resource' button. I test out the prompt and its working as expected. When I try to validate, I get the following error from Trailhead:  

Superbadge: Prompt Template Builder

 

2. Synchronous Flow error: 

I successfully add the Prompt Template Actions as well as the Update Records action to set the Translated Survey Field.  

 

image.png

 

If I keep this in the "Run immediately" flow, I get the following error when creating a new Fitness record: 

 

image.png

 

I

believe

the fix is to make this entire flow asynchronous. When I switch the flow over to an async path: 

 

 

 

image.png

 

This works, but there is a delay for the updated Translated Survey Input. 

 

Any suggestions would be super appreciated 

 

 

#Trailhead Superbadges  #Flows  #Prompt Builder

3 件の回答
  1. 10月22日 22:16

    Hi , 

     

    I think if there might be another difference between the template configuration expected by the Challenge checker and your current Version 5 configuration.

0/9000
3 件のコメント
0/9000

#Salesforce Admin #Flows What is Salesforce Flow, and how would you create a Record-Triggered Flow to automatically update related records when an Account's Industry changes?

2 件の回答
0/9000

#Salesforce Admin #Validation Rules #Flows A company wants to prevent users from closing an Opportunity unless the Amount, Close Date, and Competitor fields are filled in. Would you use a Validation Rule or a Flow, and why?

1 件の回答
  1. 10月17日 7:08

    Hi @SAITEJA B Good question! Both Validation Rules and Flows are used in Salesforce, but they serve different purposes.

    1. Key Differences

    • Validation Rule: Prevents users from saving records when required conditions are not met.
    • Flow: Automates business processes such as creating records, updating fields, sending notifications, and approvals.

    2. Your Business Scenario

    I would recommend using a Validation Rule because the requirement is to prevent an Opportunity from moving to Closed Won when mandatory fields are missing.

    Example Formula:

    AND(

    ISPICKVAL(StageName, "Closed Won"),

    OR(

    ISBLANK(Amount),

    ISBLANK(CloseDate),

    ISBLANK(TEXT(Competitor__c))

    )

    )

    Assuming Competitor__c is a picklist field.

    3. When to Use Each?

    1. Validation Rule: When you need to stop incorrect or incomplete data from being saved.
    2. Flow: When you need to automate actions based on business conditions.

    4. Official Salesforce Resources

    Use a Validation Rule for this requirement. It's simpler, easier to maintain, and prevents incomplete Opportunity records from being closed.

    Key Point: Validation Rules control data quality, while Flows automate business processes.

     

    Hope this helps! Venkat Yadav |

    SFDCINDIA

0/9000

#Salesforce #Record-Triggered #Flows What real-world business scenarios should a Salesforce learner implement using Record-Triggered Flows, Screen Flows, Scheduled-Triggered Flows, and Scheduled Paths to understand automation, avoid recursion, and handle errors effectively?

2 件の回答
  1. 10月17日 4:28

    Hi @Sai Kumar Good question! The best way to learn Salesforce Flows is to practice real-world business scenarios.

    1. Practical Flow Scenarios

    1. Record-Triggered Flow: Create a follow-up Task when an Opportunity is Closed Won.
    2. Screen Flow: Build a customer registration or case creation form.
    3. Scheduled-Triggered Flow: Check overdue Cases daily and notify owners.
    4. Scheduled Paths: Send a reminder 3 days after a Lead is created.
    5. Fault Paths: Handle Flow errors and log failure details.

    2. Important Best Practices

    • Use entry conditions to avoid unnecessary execution.
    • Use before-save Flows for updating fields on the triggering record.
    • Avoid unnecessary Get Records and Update Records inside loops.
    • Prevent recursion by checking field changes.
    • Test using Flow Debugger and different scenarios.

    3. Official Salesforce Resources

    Build one complete Lead Management project using different Flow types and error handling.

    Key Point:

    Don't just learn how to create Flows. Understand when to use each Flow type and how to troubleshoot issues. 

     

    Hope this helps! Venkat Yadav | SFDCINDIA

0/9000

I’m working with a Salesforce Flow that processes a relatively large number of records, and I’m looking for ways to improve its performance and reliability. 

 

The Flow currently performs several record queries and updates during execution. As the amount of data increases

,

the Flow takes longer to complete and can sometimes approach Salesforce governor limits. 

 

What are some recommended approaches for optimizing a Flow in this situation? For example, would reducing Get Records operations, using collections more effectively, or moving some logic to Apex help? 

 

I’d appreciate any practical suggestions or best practices for designing scalable Salesforce Flows. 

 

#Salesforce Platform  #*saleforce Platform Basic* - Understand The Salesforce Architecture  #Flows  #Slack Developers  #Automation

4 件の回答
  1. 10月16日 13:30

    The first thing to check is whether the Flow is querying or updating records inside a loop. That can quickly become a problem as record volumes grow. 

     

    A few things that usually help: 

     

    • Move Get Records and Update Records operations outside loops wherever possible.
    • Use record collections to process multiple records together instead of updating them one at a time.
    • Filter queries carefully and retrieve only the fields and records you need.
    • If the logic involves complex processing or large data volumes, consider Apex or Batch Apex. Salesforce Flow isn’t always the best fit for every workload.

    One other thing to consider: if a significant part of the Flow handles lead-to-account matching or lead assignment, you may be able to move that responsibility to a dedicated tool rather than maintaining all the logic in Flow. LeadAngel, for example, handles lead-to-account matching, deduplication, and lead routing alongside Salesforce. That won't fix inefficient Flow queries directly, but it may help simplify the routing and matching logic your team needs to maintain. 

     

    I’d start by checking the Flow’s debug details and identifying which queries or updates are consuming the most resources before deciding whether to refactor it or move part of the processing to Apex. 

0/9000

#Trailhead #Salesforce Admin #Flows

 

Suppose a business requires the Account's Customer Status to update automatically whenever a related Opportunity is marked as Closed Won. How would you implement this requirement using Salesforce Flow? Which Flow type would you choose, and why?

2 件の回答
  1. 10月13日 8:55

    Hi @Pranay yerragunta I would recommend using an After-Save Record-Triggered Flow because we need to update a related Account record.

    Implementation Steps:

    1. Go to Setup → Flows → New Flow → Record-Triggered Flow.
    2. Select Opportunity as the object.
    3. Set the condition: Stage = Closed Won.
    4. Choose Only when a record is updated to meet the condition requirements.
    5. Select After Save (Actions and Related Records).
    6. Add an Update Records element to update the related Account using $Record.AccountId.
    7. Set Customer Status = Active Customer (or the required business value).
    8. Save, Activate, and Test the Flow.

    Why After-Save Flow?

    • Before-Save Flow is mainly used to update fields on the triggering record.
    • After-Save Flow supports updating related records.
    • No Apex code is required for this straightforward requirement.

    Best Practice: Test with multiple Opportunities and confirm the Account status updates correctly when an Opportunity changes to Closed Won.

0/9000
Nikolai Hoffmann が「#Flow」で質問

Since the Winter '27 release, we are unable to debug active flows versions. 

The only way to debug an active flow version is to create a new flow version and enter test mode. 

This help article somewhat confirms that behaviour and suggests to use Agentforce for debugging: 

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

 

This is not an option for us. 

This is the header for an active flow version. 

No option for test mode.

How to debug an active flow version?

 

Are we missing anything? 

 

 

#Flow  #Flows

4 件の回答
0/9000

We have a process we're updating that involves sending out an automated email when a new record is created on a custom object.  Everything tested out in Sandbox, but when migrated to Prod, two slightly different emails are triggering when I test.  Talking with the internal customer, they said, "Yeah, that's always been going out," but they don't know who originally set it up.   

 

  • It would have been set some time before me...but it's not triggering in Preprod, which has been refreshed recently - so I'd think it would.
  • Checking Flow triggers, the only other flow triggering off of that custom object updates a field - there are no send email elements to it.
  • I don't see any legacy email alerts or Workflow actions for it
  • I turned off my Flow, opened a debug log on the automated process user, and nothing generated when I triggered that mystery email (that still came through.)

 

I'm kind of at a loss to figure out where to check from here. 

 

#Flows  #Email  #Flow  #Automation

3 件の回答
  1. Smitha Thomas (CIBC) Forum Ambassador
    10月5日 23:27

    Hi @Nich Weidman

     

    When Salesforce sends a system email, it includes special header fields that identify the source organization and user. To identify the source, locate the following fields in the raw email headers:

    • X-SFDC-LK — The Salesforce Organization ID (the 15- or 18-character org ID of the org that sent the email).
    • X-SFDC-User — The Salesforce User ID of the user whose automation triggered the email.
    • X-SFDC-EntityId — The record ID of the Salesforce entity (such as a workflow rule or report) that triggered the email.
    • X-SFDC-Emailcategory — The category of the email (for example, workflow, report, or Chatter digest).
    • X-SFDC-ORGTYPE — The type of org that sent the email. Note: this field only appears in emails sent from Free or Trial orgs. It does not appear for production, sandbox, or developer org emails.

    Important:

    Use the original .msg formatted email — not a forwarded copy. Forwarding an email overwrites the original headers, making it impossible to identify the source org. 

     

    Find the User Id from

    X-SFDC-User

    then go to set up and add a Debug trace for the user and then triggert the email. This will create a debug log for you to read and find the source. 

     

    Check out these articles for more info:

    1. Find the email headers for emails
    2. How to Identify the Salesforce Organization That Sent a System Notification Email 

       

0/9000

I have a flow that creates a Conversion Event record (custom object) whenever a Campaign Line (CLN) record (related custom object) is created (via the Clone button). Typically, there are multiple Conversion Events, which are auto-numbered, related to a CLN. The intention of the flow is to clone/copy over those Conversion Events from the old CLN to the new cloned CLN without the user having to recreate them.  

In the flow, I use a Get Records to pull all the Conversion Event info from the previous CLNs and then loop through all the records and use an Assignment to assign the values to the field variables and a Collection to hold all of the newly created records. However, I have one field, a picklist that is just a list of numbers 1-20, that doesn't always pull the number from the looped records and populate in the new Conversion Event record. 

Does anyone know why this would happen and how it can be fixed? I'm wondering if there is something nuanced about using numbers in a picklist that I don't know about? 

Thanks! 

 

#Flow  #Flows

3 件の回答
  1. 10月2日 5:33

     Hii Lisa,

     

    The 1–20 picklist values are not the issue. I would check the Flow’s loop or assignment

    pattern first.

    Make sure the picklist is assigned directly from Current Item from Loop to the new record variable, then add that record variable to the collection. Create the records after the loop, not inside it. Salesforce specifically recommends this pattern because the Current Item is reset on each iteration.

    Also verify that the picklist values are "Active" and available for the target "Record Type"

     (and controlling value, if it’s dependent). 

     

    Check this for references: 

     https://trailhead.salesforce.com/content/learn/modules/loops-in-flow-builder/build-a-loop

     

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

0/9000