I've been working with the named formulas feature but have found in some situations that their functionality is a bit limiting. For example, I've got a named formula set up which reference a user's Direct Reports.
gbl_myDirectReports=Office365Users.DirectReportsV2(userID).value
This is fine in most uses, however I also have a formula that runs upon a page view whereby it is required to check the status of this collection.
ClearCollect(col_test,If(IsEmpty(gbl_myDirectReports),{DifferentTable},gbl_myDirectReports))
If this is the first time the gbl_myDirectReports variable has been called, it seems it doesn't wait for the results, but instead treats it as empty and continues to load the {DifferentTable} instead. I then have to run the formula again and it works fine, as the directReports variable now has context.
I've implemented a workaround for now to call the variable before running the above formula so it populates correctly, but is this expected behaviour?