I'm looking at the new Named formulas functionality and was wondering if its feasible to turn the below Path/Collect into a named formula:
Patch(
ClearCollect(accessList,
Switch(true,
CountRows(Filter(adminList, currentUserEmail = emailID)) > 0,
Sort(preAccessList, SortID),
CountRows(Filter(Sort(preAccessList, SortID), currentUserEmail = IDEmail)) > 0,
Filter(Sort(preAccessList, SortID), currentUserEmail = IDEmail),
Sort(preAccessList, SortID))),
Defaults(accessList),
{Department: "Please Choose Your Department...", SortID:0}));