We are currently moving data from Microsoft Azure SQL to CDS
I managed to import the tables but I have a few questions that I hope you can help me with
Q1. In SQL I have the field ID which is an auto number and my primary key . In CDS this is not possible because it saying it has to be a text field. What can I do in this regard?
Q2. Below is a piece of my code where I am building a Collection collAllValidQuesA from the '[frm].[_0QuestionBank]' table. When I run this code in SQL the Collection collAllValidQuesA creates the columns exactly like the table
However when I import the '[frm].[_0QuestionBank]' table into CDS and make this new entity and I run the below code it goes and creates all these extra columns in my collection that I do not need and this is the problem
Is there a way to limit the number of columns in my collection so that I do not have all these extra ones? Could you please show me what I have to do in the coding so that this is avoided?
ClearCollect(
collAllValidQuesA,
SortByColumns(
Filter(
'[frm].[_0QuestionBank]',
ID >= 1 And ID <= 1899
),
"QuestionOrder"
)
)