Hi all, i have a scenario that i want to send my entire gallery data to power automate in json format but here my issue is I'm dealing with multiple columns sometimes i get only few columns in gallery and some times i get all columns. If the given column is not available in gallery the condition which i have written is giving error can anyone help me on this
I want to make my columns in dynamic or if possible i want to remove column names in condition and get the all columns values in JSON format.
My code which I'm using is :
Myflow.run(JSON(showcolumns(gallery1.allitems,"colmn1","column2","column3"), JSONformat.compact))
Sometimes i may get 5 columns also - ex : column1, column2, column3, column4, column5
How can i modify my code to work on dynamic column names any suggestions.