The Answer for the Collection Filter & Collection Sort Challenge

Hello folks,

Last week I told you that I challenged myself to use as few elements as possible when searching for particular records among the cases in my Org. You can find the Collection Filter and Collection Sort post here.

I started with a get element that returns all the cases that have both account and contact assignments. I was able to extract the following information with only one get element:

  • Most Recently Modified Case
  • Oldest Modified Case
  • Oldest Modified Case Account Name
  • Number of Cases by this Account
  • Most Recently Closed Date for this Account
  • Contact Id on this Case
  • Number of Cases for this Contact
  • Oldest Closed Date for this Contact on this Case

It took me 21 elements, including one get, to find all these records. How did I achieve this? Check the image above for the details. Click on the image to see a bigger version.

Enjoy.

Andy Engin Utkan

P.S. If you like this newsletter, forward it to your friends. They can sign up for it here.

Enjoy.

P.S. Originally published on 06/07/2022.

Read the previous issue of the newsletter here.

Read the next issue of the newsletter here.

Subscribe to the weekly educational Salesforce Flow Tips newsletter here.


Comments

2 responses to “The Answer for the Collection Filter & Collection Sort Challenge”

Leave a Reply

Discover more from Salesforce Break

Subscribe now to keep reading and get access to the full archive.

Continue reading