Hi,
- I have a number of Dataverse tables where in the App OnStart I make local Collections of them so the App can run properly with no network available onsite.
- When tables are created in Dataverse it adds 15 to 20 columns that I won't ever use in PowerApps like Created by, Created on etc and these cannot be deleted.
- When building the Collections PowerApps recognises I never use the columns so leaves them blank in the Collection so it is not like memory is being wasted.
- However I want to eliminate them completely ... is there a way I can just specify the columns I want to keep? Or iterate through the columns somehow?
I am just trying to avoid repeating the same code over and over for multiple collections 10 or 15 times.
Also sometimes depending on whether data was imported from Excel into DataVerse it adds other columns as well.
ClearCollect(col_Controls_Apps,
DropColumns(
BPHC_Controls_Apps,
"_ownerid_value", "createdby", "createdonbehalfby", "createdon", "importsequencenumber", "modifiedby", "modifiedonbehalfby", "modifiedon", "owningbusinessunit",
"owningteam", "owninguser", "overriddencreatedon","statecode", "statuscode", "timezoneruleversionnumber", "utcconversiontimezonecode", "versionnumber")
);​