Skip to main content The new Salesforce certifications experience is live! Visit Trailhead Academy to explore your new certifications homepage.

Feed

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

Hi, I am working on a Flow with these goals:  

1. Take a multi-select picklist field (Services_Provided__c) from an Intake__c record 

2. Split each selected value into individual items 

3. Create related records in Intake_Svc_Provided__c, with one record for each selected value 

4. Text Field name is Svcs_Provided_Split__c 

 

I have created a Record Triggered Flow using an Apex action to split out the values  

 

(I had tried using StringWizard from UnofficialSF but installation fails because I need 'FlowActionsBasePack' version 2.36. This version is no longer available and when I download 'FlowActionsBasePack' it is version 3.19. ) 

 

APEX CLASS 

 

public class IntakeServiceSplitter { 

    @InvocableMethod(label='Split Services Provided and Create Records') 

    public static void splitAndCreate(List<Id> intakeIds) { 

        List<Intake__c> intakes = [SELECT Id, Services_Provided__c FROM Intake__c WHERE Id IN :intakeIds]; 

        List<Intake_Svc_Provided__c> newSvcRecords = new List<Intake_Svc_Provided__c>(); 

 

        for (Intake__c intake : intakes) { 

            if (String.isNotBlank(intake.Services_Provided__c)) { 

                List<String> services = intake.Services_Provided__c.split(';'); 

                for (String service : services) { 

                    service = service.trim(); 

                    if (!String.isBlank(service)) { 

                        newSvcRecords.add(new Intake_Svc_Provided__c( 

                            Intake__c = 

intake.Id

                            Svcs_Provided_Split__c = service 

                        )); 

                    } 

                } 

            } 

        } 

 

        if (!newSvcRecords.isEmpty()) { 

            insert newSvcRecords; 

        } 

    } 

 

I created a Collection Text Variable intakeIdCollection and allowed multiple values 

I configured the Assignment element as intakeIdCollection  Add  RecordId 

Then I have an Apex Action and in intakeIds I have RecordId (variable) 

 

Having an issue with 2 things I think:  

Assignment:

 For Value, when I type in Record I have to select Triggering Record > Record ID 

The in the 

Apex Action

 in the intakeIds box, I cannot just select record Id and it won't accept if I just paste in Record. Id 

 

I tried deleting the Apex Action so it is created after my Resource intakeIdCollection was created and even closed flow and opened it again but that did not work. I also tried using a CollectionFormula resource of {!intakeIdCollection} but that did not work either.  

 

My Flow debugs successfully but it is not getting any outputs to create records.  I am adding a pic of my Flow.  

Help creating Flow to split out multi-select values and create new record of each

 

 

 

#Flow

21 answers
  1. Jun 19, 10:23 AM

    @Hilary Schettino

    Looks good. Do the below steps: 

    1. Create a Collection Record Variable of your object type.  

    2. In this Assignment element add the Single variable to this collection using the "add" operator. 

    3. Now in the Create Records element use this collection variable. 

    That's all. Thank you 

0/9000

Error notification.

Invalid object: 01Iaj000005F8dV

I'm working on the Improve Field-Level Security Settings Challenge and received the above error when attempting to set Read/Edit settings on my Job Application object.

 

#Trailhead Challenges

6 answers
  1. Today, 7:30 PM

    Hi @Kathy Wood, Thank you for reaching out to the Trailblazer Community. Can you please confirm if you're still seeing an issue? If yes, can you please mention the Module and Unit name (or) URL so that we can look into it and can help you further?

     

    If your issue is resolved, can you please mark the appropriate response as "'Accepted Answer'” or post the resolution that helped you in resolving this issue? So that it can help the other Trailblazers.

    Thank You!

     

    ++TrailheadHelpFollowUp

0/9000

Hi, Why am I in Setup → Object Manager → 

On the Account → validity rules → insert field interface, the field 'Customer ID __c' cannot be found? 

Data Validation Superbadge Unit: Enforce Customer ID Format

 

 

 

#Trailhead Challenges

6 answers
  1. Today, 7:29 PM

    Hi @Yingyan He Thank you for reaching out to the Trailblazer Community. We noticed that you have successfully resolved your concern. Could you please mark the most helpful response as 'Accepted Answer' or share the solution that resolved your issue? This will assist other Trailblazers in the future.

     

    Warm Regards,

    Trailhead Help

    ++TrailheadHelpFollowUp

0/9000

See screenshot.

 

Tried refreshing, tried to track back (no such luck - don't know how to get back to this step); could anyone help out pls?  

Completing the Agentblazer training, but last step has this error

 

#Trailhead Challenges

2 answers
  1. Today, 7:28 PM

    Hi @Joris Voorsluis, Thank you for reaching out to the Trailblazer Community. Can you please check with the above suggestions and let us know if the issue still exists or is resolved? If it is resolved, please post the solution or mark any one of them above which helped you to resolve your query as "Best Answer" to close this thread.

     

    – If not, kindly let us know so that we can reach out to you through an email.

     

    Thank You!

     

    ++TrailheadHelpFollowUp

0/9000
2 answers
  1. Today, 7:28 PM

    Hi @Sathwik Ravula, Thank you for reaching out to the Trailblazer Community. Can you please confirm if you're still seeing an issue? If yes, can you please mention the Module and Unit name (or) URL so that we can look into it and can help you further?

     

    If your issue is resolved, can you please mark the appropriate response as "'Accepted Answer'” or post the resolution that helped you in resolving this issue? So that it can help the other Trailblazers.

    Thank You!

     

    ++TrailheadHelpFollowUp

0/9000

Our Service team has requested that additional fields be transferred when a child case is automatically created—specifically when a closed parent case receives an email reply. The issue is, I can’t seem to locate where this logic is configured in Salesforce.   

I’ve reviewed all of our flows and didn’t find anything that appears to handle this. I also ran a debug log on the integration user that is associated with cases and then created a child case by emailing a closed case. This didn't help me pinpoint where the functionality is for copying parent case data to a child case.     Please help by providing ideas of where I should look to update the fields that are chosen for copying to a child case. Or, do I simply need to create a flow to handle this?     

7 answers
0/9000

I'm setting up approval orchestration flows for my client and the Recall button is really buried - you have to open the Approval Work Item and then the Approval Submission to find it.  I'm trying to find a way to use apex and/or flow to create a more accessible button - but so far it looks like the Approval namespace only works with the old Approval Process, and Advanced Approvals seems to be tied to CPQ.  Any work arounds?  @Alex Edelstein

I'd love to hear how we can make the approval orchestration work with flows in a more seamless way.   

@* Release Readiness Trailblazers * @* Salesforce Administrators *

0/9000
1 answer
  1. Smitha Thomas (CIBC) Forum Ambassador
    Today, 7:21 PM

    Hi @Abhi Yadav

     

    Can you elaborate? Which module are you working on and whats the error?

0/9000
0/9000

Solving Enhance Agentforce to Act on Data with Conversational Language module but not having proper object in it and unable to change the playground. 

 

#Trailhead Challenges

2 answers
0/9000