I use WebAppBuilder 2.22 to develop 3D web apps with custom widgets (esri js API 4.22) for our portal.
I use python peoprocessing tool and the 'esri/rest/geoprocessor' service to create in the portal a shape file that contains points, polygons and polylines feature layers.
I succeeded to cause the server to display the shapefile in the web app (see in the code),
but for some reasons this is not what I need...
What I really need is to retrieve the feature layers themselves (the points layer, the polygon layer, the polyline layer etc.) and insert them into the scene by