You need to sign in to do that
Don't have an account?
Sammy Shk
How to sort collection of Strings (Email addresses) in alphabetically in invocable apex and pass it back to Flow?
Newbie in apex, I have a list of collection of strings (Email addrsses) in a flow, i want to sort this list with alphabetically. Since flow supports collection sorts only asc or desc, i have decided to use invocable apex to input this collection and sort it alphabetically and pass the list back to flow? How do i sort Collection of strings in invocable apex
Thanks
Thanks
global class SortCollectionOfStrings { @InvocableMethod(label='Sort String Collection') global static void SortCollectionOfStrings(list<string> FinalistofEmailcollection){ FinalistofEmailcollection.sort(); } }