I am trying to understand why some queries fail when called via ODATA API and others do not. I get a 404 error, with no further information added for a small number of tables.
I am trying to return ALL fields from Change Log Entry, as an example, using ODATA API and a custom extension I have published containing a query. I have noticed in debugging that if I remove certain fields from Change Log Entry from my query, the query (& associated API) will run successfully.
Below is the AL code for the Change Log Entry table itself. This is the base table design, rather than my query. I noticed this field is a bit more than just a simple field where data is loaded. It has a lookup to AllObjWithCaption. Are there any known restrictions on which tables / fields can be loaded via ODATA APIs / Web Services? I believe it's restricted, or something like this.
Depending on the reason for the issue, let's say I absolutely need to extract this field, what are workarounds if it is indeed a limitation causing my error?
Many thanks in advance
field(6; "Table Caption"; Text[250])
{
CalcFormula = lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Table),
"Object ID" = field("Table No.")));
Caption = 'Table Caption';
FieldClass = FlowField;
}