I am struggling with some scoping issues where I am trying to extract dataframe.
Here is a portion of a larger custom function to extract data from M