Hi Christoph_G
Sorry I didnt work with CDS so this can be offtopic but
Filter(Incident; Machine_.PrimaryId = MachineGallery.Selected.PrimaryId)
is it correct? (I see "." two times on two "entites" ... likes one lookup in MachineGallery.Selected.PrimaryId but Machine_.PrimaryId too)
Filter(Incident; Machine_PrimaryId = MachineGallery.Selected.PrimaryId) ?
1.
(or when really on CDS server side is not support to work like this .. maybe try call a 'record' instead of value?
Filter(Incident; Machine_ = MachineGallery.Selected)
2.
or maybe not implement it on server side like lookup .. but just for example by "integer/number" column
Filter(Incident; CustomMachinePrimaryId = MachineGallery.Selected.CustomPrimaryId)
(it lost "relationship" but it gains possibility to make your call (and when CDS will be able to handle original call, data could be copy and migrated into original lookup structure)