Salesforce Flow Loops Explained | Use to Create Multiple Records

  Рет қаралды 14,550

Employed for Good

Employed for Good

Күн бұрын

Пікірлер: 31
@thedavidjdunn
@thedavidjdunn Жыл бұрын
One of the clearest explainers of loops I've encountered. Loved the visuals.
@employedforgood
@employedforgood Жыл бұрын
Thanks for the kind note!
@frankcosette3046
@frankcosette3046 6 ай бұрын
Really good quality delivery on your part. Many should learn from you on how to teach. I can only assume there is a team behind you.
@formerbabyfutureghost
@formerbabyfutureghost 8 ай бұрын
This is the video that finally got single record variables and record collections for loops to sink into my brain. THANK YOU!!!
@employedforgood
@employedforgood 8 ай бұрын
That is so awesome once it finally happens! Thank you for letting me know, I’m glad to hear it!
@pfleming33
@pfleming33 7 ай бұрын
Absolutely brilliant, was struggling with loops and updating the records outside the loop, thank you for this.
@employedforgood
@employedforgood 7 ай бұрын
Thanks for the comment, glad to hear it helped!
@marybuchanan3313
@marybuchanan3313 10 ай бұрын
This is exactly what I was trying to do! Thanks so much!
@mahanteshbhuyar5524
@mahanteshbhuyar5524 Жыл бұрын
Clearly explained!
@helenecoetzee5597
@helenecoetzee5597 2 жыл бұрын
Helped me so much! Thanks
@anjilesourne
@anjilesourne Жыл бұрын
Gosh Thank you! You just saved me a lot of time☺
@bheemadonthi5780
@bheemadonthi5780 2 жыл бұрын
Awesome video mam, i had a similar scenarion (Except the date criteria) and it worked fine, Thanks loads..!
@employedforgood
@employedforgood 2 жыл бұрын
You got it, glad it worked out for you!
@bhatsunayana
@bhatsunayana Жыл бұрын
Hi! This is very helpful, thank you for the video! I have a question, If I want to create multiple records through flow, and the action that would trigger the flow would be click of a Button, what flow type should I use, screenflow?
@employedforgood
@employedforgood Жыл бұрын
Thanks @bhatsunayana! You can technically call Flows from buttons either via autolaunched or screen flow. But you probably want to prompt your users before they create those records, so I'd suggest a screen flow.
@bhatsunayana
@bhatsunayana Жыл бұрын
@@employedforgood Thank you for the quick response and suggestion! Appreciate it!
@krishnaCasukhela
@krishnaCasukhela 2 жыл бұрын
Hello Mam, You explained the concept extremely well, I have 10 opportunities whose stageName is not equal to closed Won/Lost and I am not using any date criteria. But after the flow kicks in I am seeing for under each opportunity 10 Tasks are being created instead of a single Task
@employedforgood
@employedforgood 2 жыл бұрын
Thank you Krishna. It's difficult to troubleshoot without seeing it, but I would start with the debug log. Run the debug and see 1) how many records you find in the GetRecords element, 2)how many Opportunity Ids iterate in the Loop and 3) if your final CreateRecords element is sending the correct number of Tasks to Salesforce . If it's sending multiple tasks with the same Opportunity Id, then it's something earlier on in your Flow - possibly an issue with your Assignment elements, though I can't imagine what that might be. Also, I assume you're using a Schedule-Triggered Flow like the one in the video. If you happen to be using a record-triggered Flow, then it's possible that separate update operations are causing your Flow to continue firing/creating Tasks. Hope some of that was helpful
@dialp4penguin
@dialp4penguin Жыл бұрын
I sat for hours trying to figure this out, and all I needed to hear was, "just backspace that period"
@employedforgood
@employedforgood Жыл бұрын
Lol! Been there. Glad I could help with that one!😂
@dialp4penguin
@dialp4penguin Жыл бұрын
@@employedforgood You definitely could! I've stumbled upon a couple of your videos throughout my SF journey, and they've helped out so much!
@GregDyche
@GregDyche Жыл бұрын
Great video. I see what I’ve been doing wrong; thank you. When adding the single-record variable to the collection-record variable, you point out removing the period from the value selection, so the whole record is selection instead of a single field. Is that called dot notation? How do I describe that in order to do some more research? I don’t understand why the two step process is needed: collect a single record and then add the single to the collection. Seems like I should be able to add each individual value to the collection-record in a mulit-value assignment, instead of the doing that to the single-record first. Does that make sense? Again, thank you so much for taking the time to make the video. I found it very helpful.
@employedforgood
@employedforgood Жыл бұрын
Hi Greg - first, apologies for taking so long to respond. I'm just figuring out how to keep tabs on my video comments! I don't believe that step (of removing the period) is considered dot notation necessarily. But to your larger question about adding records to collections vs specific values - you should definitely be able to do the latter. But that depends on how you've set up the collection variable, and more specifically, the format that you select when creating. So for example - if you wanted to grab just the record Id value (text), you could choose that in your Assignment and then add it to a text collection variable. But if you have a record collection variable, like I do in the video, then it only supports full records. A bit late for an explanation, but hopefully that makes sense
@therealbeskarlorian
@therealbeskarlorian 7 ай бұрын
What is the formula in the Date_LastMonth date variable?
@employedforgood
@employedforgood 7 ай бұрын
CASE( MONTH({!$Flow.CurrentDate}), 1,DATE(YEAR({!$Flow.CurrentDate})-1,12,1), DATE(YEAR({!$Flow.CurrentDate}),MONTH({!$Flow.CurrentDate})-1,1) ) Case formula that looks at the month # value for the current/flow run date. If the month is 1 (January), then returns December 1 of the previous year Otherwise, returns the 1st of the previous calendar month
@therealbeskarlorian
@therealbeskarlorian 7 ай бұрын
@@employedforgood thanks for responding!
@ritamnayek5071
@ritamnayek5071 2 жыл бұрын
How to define boolean date variable ?
@employedforgood
@employedforgood 2 жыл бұрын
Hi Ritam - in the Flow, create a new resource > choose 'formula' (not variable). For the input, this is what I have: DAY({!$Flow.CurrentDate}) = 1 $Flow.CurrentDate is a system variable you can find within the Flow. DAY is a function that returns the day (number format) of that flow date. The total expression checks if the Flow date is equal to 1.
@ritamnayek5071
@ritamnayek5071 2 жыл бұрын
@@employedforgood Thankyou. It's help me a lot 😀
@Trevor.Morrice
@Trevor.Morrice 2 жыл бұрын
you didnt show how to setup the new task variable
@employedforgood
@employedforgood 2 жыл бұрын
Thanks for watching, Trevor. You can see how the Task variable is configured in this other video, that further explains how record variables work. It starts at 1;37 > kzbin.info/www/bejne/epmQfadmadiUnqc
Salesforce Flow Decision Element Explained
5:30
Employed for Good
Рет қаралды 2,8 М.
How to create n number of records in Salesforce Flow | SalesforceGeek
23:32
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 415 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 17 МЛН
How The Transform Element Saves You Loops
9:48
Salesforce Break
Рет қаралды 2 М.
Salesforce Flow *Record Collection Variables* Explained
4:59
Employed for Good
Рет қаралды 23 М.
Salesforce Flow: Loop Element Explained
21:30
Salesforce Made Simple
Рет қаралды 8 М.
Create an HTML Table of Related Records in Salesforce Flow
15:52
Rotive - Brian Hays
Рет қаралды 6 М.
Compare Salesforce Report Groups with PARENTGROUPVAL (Beginner)
12:05
Employed for Good
Рет қаралды 11 М.
Use Flow Builder to Create Roll-Up Summary Fields
9:40
Salesforce Admins
Рет қаралды 43 М.
Salesforce Flow Anti-Patterns | Salesforce Flow Best practices in 2024
1:04:01
Salesforce Apex Hours
Рет қаралды 1,9 М.
【Flow】 | 【Element】| Get Records Explained in Details
7:00
Salesforce Flowsome!
Рет қаралды 9 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 415 М.