I am trying to figure out if there is a way to dynamically create a feature layer on our arcgis online instance, and save features to this layer.
Scenario 1
User does a button click and it creates a dedicated feature service named FS_A with polygon/polyline/point layers.
Scenario 2
User creates a graphic and saves it as a feature in previously created feature layer service FS_A with all relevant meta data.
Scenario 3
User loads map, on load, it then loads feature service FS_A programmatically thus showing all the saved features on the map.
I've currently hacked this by generating Feature Layer locally, and storing "feature" data in local PostgreSQL, which then loads it to the layer.