Hi i have two galleries, Main gallery A & nested sub gallery B. The idea is to export the information into CSV so i proceeded to create a collection to gather the gallery information shown below and export it to csv. It worked but im getting a repeated information in the csv table. Collection name is CsesAll. i set a code on the navigate button as below
ForAll(GalleyA.AllItems,Collect(CsesAll,{SAPID:Label21.Text,RequestorName:Label3_15,Vendor:Label23.Text,DateStart:Label8_30.Text,DateEnd:Label8_31,TotalFees:Label8_21,CostCentre:Label24,Evalcomplete:Label17.Text}));Navigate(ExportScreen)
THis navigates to the export screen and here Export button runs the flow -> ForAll(GalleyA.AllItems,Collect(CsesAll,{SAPID:Label21.Text,RequestorName:Label3_15,Vendor:Label23.Text,DateStart:Label8_30.Text,DateEnd:Label8_31,TotalFees:Label8_21,CostCentre:Label24,Evalcomplete:Label17.Text}));Set(varcsv,Concat(CsesAll,SAPID & "," & RequestorName & "," & Vendor & "," & DateStart & "," & DateEnd & "," & TotalFees & "," & CostCentre & "," & Evalcomplete& Char(10)));ExportCseAll.Run(varcsv,"External Training Records" & Now()).
Good news export works but I dont get the headers and the information is repeated in the same exported csv.