We want to support dynamic layers via lyrx file in dynamic MapService, but it seems it's only possible via ArcGIS REST API: see dynamic layer setting with workspaceLayer support. The same thing is not supported in Maps SDK, I got an error from Accessor that the given property value 'workspaceLayer' is invalid and needs to be one of 'DataLayerSource or MapLayerSource'. This fully corresponds with the Maps SDK documentation, no words about workspaceLayer in DataLayer section (only table, query table, raster and jointable).
So the question is: is it intended that the SDK does not support this type of data layer source for dynamic Map services and if yes, when will SDK catch up with this very interesting REST functionality?