I've found when patching data back into a source from a collection, it helps to make sure your collection and source don't have the same column names as PowerApps can't determine the correct scope for the columns. Yes, it's nice and easy if you're just appending and you can collect straight back into the source, but patching is another story it seems.
Creating the collection from the source is also nice and easy with ClearCollect(Collection, Source) - so I figured I'd try use RenameColumns after the fact to differentiate my collected columns from my source columns. That's when the weirdness started;
ClearCollect(StageTable, QTable);
ClearCollect(CollectQuestions, RenameColumns(StageTable, "Category", "CollectCat"),
RenameColumns(StageTable, "QID", "CollectQID"),
RenameColumns(StageTable, "Questions", "CollectQ"))
Here's the staging collection followed by the new collection;
StageTable
New Collection with...???
So, I'm pretty sure it's supposed to rename new columns...What am I doing wrong here?
Kind regards,
R