![]() ![]() But how do you get it to automatically loop through all records? In a record triggered flow doesn’t it only trigger when a record is created or updated? My aha moment was creating a record-trigger flow, and then creating a one-step schedule-triggered flow (specify conditions to identify records, and set fields individually, with no filter) that simply updates all records, hence triggering my record-triggered flow for each individual record. This is one the most helpful posts I have ever read! One thing that confused me: “The Record- and Schedule-Triggered flow support bulkification, which means we can build the flow as if it is for only one record, and it will automatically loop through all records.” That sounds great because I want a flow to loop through all records of a custom object to add ContentDocumentLinks. For example, if you have 10 records with 2 outer elements and 3 inner elements, the total executed elements are 2 + 3 * 10 = 32. Based on the official article, the elements outside the loop will count as 1, and the elements inside the loop (including the loop itself) will count as 1 *. How to Calculate Executed Elementsįirst to recap on how the executed elements are calculated. I will use Account and Contact objects for the testing. What does “per flow” mean? Is it per transaction or something else? Thus this is what we want to find out at the end of this experiment. I don’t find this definition really accurate. In this General Flow Limit article, it says the limit of Executed elements at runtime per flow is 2000. Thus in this article, I am testing how each type of Flows handles huge sizes of data. However, I wonder if it is really impossible for Flow to handle many records due to this element limit. I even wrote this in the Governor Limits article, but I didn’t think that far about how it puts a limit on the data size. In one of the conversations with Alex, the founder of the cool YouTube channel FlowFanatic, he reminded me that Flow is still not the best tool when dealing with a big amount of data as the limit of executed elements is 2000. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |