Hi - I'm hoping that someone can assist me with this query. I have been unable to solve it on my own.
I have a hosted feature service in AGOL that is accessed by multiple users for feature creation. It consists of 12 different layers - point, line and polygon, across 4 different environments (development, user acceptance, training and production). The sequence is:
/0 - DEV points
/1 - DEV lines
/2 - DEV polygons
...
through to
...
/9 PROD points
/10 PROD lines
/11 PROD polygons
For the purposes of consuming this data in another web app, I would like to create 4 different view layers, one for each of the operating environments (DEV, UAT, TRAIN, PROD). In this view layer I would like to reference the source twice to capture different time slices of the data, eg:
DEV_VIEW
/0 - points - would be a view of source layer /0, with only features created < 24 hours
/1 - points - would be a view of source layer /0, with only features created >= 24 hours
/2 - lines - would be a view of source layer /1, with only features created < 24 hours
/3 - lines - would be a view of source layer /1, with only features created >= 24 hours
/4 - polys - would be a view of source layer /2, with only features created < 24 hours
/5 - polys - would be a view of source layer /2, with only features created >= 24 hours
...
...
...
PROD_VIEW
/0 - points - would be a view of source layer /9, with only features created < 24 hours
/1 - points - would be a view of source layer /9, with only features created >= 24 hours
/2 - lines - would be a view of source layer /10, with only features created < 24 hours
/3 - lines - would be a view of source layer /10, with only features created >= 24 hours
/4 - polys - would be a view of source layer /11, with only features created < 24 hours
/5 - polys - would be a view of source layer /11, with only features created >= 24 hours
I cannot for the life of me work out how to do this - is it even possible? The capability doesn't seem to be supported from within AGOL, and I can't work out whether ArcGIS Pro has the capability to create a feature service view in such a fashion.
My only thought at present is that it may be potentially possible by directly manipulating the JSON of a view layer, although this seems overwhelming and something I'd like to avoid if possible.
Does anyone have any advice?
Thanks
Anthony