I am using the following code to retrieve certain columns from my list. If I comment out the 'Clear' function at the bottom, it returns all columns including data.
When I uncomment the 'clear' function, it deletes everything including the column headers. How do I retrieve only column names from my sharepoint list and then populate that collection at runtime?
ClearCollect(
ColTaskUpdates,
ShowColumns(('HelpDesk'),
"Title",
"Description",
"Status",
"Priority",
"AssignedTo",
"Category",
"ResolutionSummary",
"Comments"
)
);
Clear(ColTaskUpdates)