Skip to content

How to retrieve the current data collection displayed from a filtered DetailList control #76

Discussion options

You must be logged in to vote

Hi @AstroNorman,

As the dataset(Collection) is filtered outside of Details list, one way to pass the collection which is filtered/Sorted to a PowerAutomate for generating an excel etc. can be to re-use the same PowerFx.

For example, if below code is used to modify collection which is passed as an Items property of detail list. Then same code can be re-used and passed as input parameter for the PowerAutomate to generate excel or perform any other task.

SortByColumns(
        Search(
            colData,
            CK_SearchBox.SearchText,
            "ColumnName"
        )
    ,
    ctxSortCol,
    If(
        ctxSortAsc,
        SortOrder.Ascending,
        SortOrder.Descending
    )
)

S…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AstroNorman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants