Hosting multiple deployments of Citizen Problem reporter on AGOL?

688
2
Jump to solution
06-24-2019 11:14 AM
JacobRougeaux
New Contributor III

Is it possible to host multiple deployments of the citizen problem reporter on AGOL?  My plan is to build a separate reporter application for several municipalities and host it all on my AGOL organization account.  However, I cannot figure out a way to successfully deploy or copy the hosted feature layers so that I essentially have several copies of the same layers but they are each assigned to a specific municipality.

I've tried different methods of copying the feature layers but to no avail.  The primary issue in copying is the parts that are dropped in the copying process including the symbology and the tracking of that Status field.  I also lose the ability to create definition queries on the layers.

It seems like I might have to resort to hosting everything from a single deployment of the service, but then the challenge becomes how to query the data so each municipality only sees their data without causing issue in the email script I created by modifying Jake Skinner's script found here.

1 Solution

Accepted Solutions
KellyGerrow
Esri Frequent Contributor

Hi,

Are you looking to keep the data in a single service or in multiple services?

If you are looking for a single service solution, try using hosted feature layer views that separate the data by either location of field. 

https://doc.arcgis.com/en/arcgis-online/manage-data/set-view-definition.htm

https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm#ESRI_SECTION1_8D8C0D087F...

If you are looking to copy the schema of an existing layer for each municipality, try the workflow outlined in this doc:

https://doc.arcgis.com/en/arcgis-online/manage-data/publish-features.htm#ESRI_SECTION1_809F126685654...

-Kelly

View solution in original post

2 Replies
KellyGerrow
Esri Frequent Contributor

Hi,

Are you looking to keep the data in a single service or in multiple services?

If you are looking for a single service solution, try using hosted feature layer views that separate the data by either location of field. 

https://doc.arcgis.com/en/arcgis-online/manage-data/set-view-definition.htm

https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm#ESRI_SECTION1_8D8C0D087F...

If you are looking to copy the schema of an existing layer for each municipality, try the workflow outlined in this doc:

https://doc.arcgis.com/en/arcgis-online/manage-data/publish-features.htm#ESRI_SECTION1_809F126685654...

-Kelly

JacobRougeaux
New Contributor III

Kelly,

This was just what I was looking for!  I used a combination of your suggestions to accomplish what I needed.  I created new feature layers based on existing and created views based on the new layers.  Thanks!

Jake