Hi,
As the title suggests, I am in need of some assistance for locating the layerID of a serviceDataset. I am looking to change the dataset for an ArcGIS Dashboard because I want to keep the previous configurations without needing to start over. However, I am stuck on finding and changing the layerID. A screenshot below of my item's JSON is below. Thank you in advance for any assistance.
Solved! Go to Solution.
Hi,
I have not dealt with service datasets, so my suggestions below might well not apply to your situation.
What I have needed to do is swap out feature layers in a map that is used by a dashboard for very similar reasons as you've described.
The key with this is to learn what the service URL for a feature layer is so that you can swap it out in the map's JSON in AGO Assistant.
Go to the feature layer's overview page, scroll to the bottom and locate the URL text box, as shown below. Click the button to the right of the text box to copy the service URL into your clipboard.
Next, you can either edit the map's JSON in AGO Assistant to update the service "url" in the feature layer definition (which is pretty danged tedious, but doable) -OR- use the "Update the URLs of Services in a Web Map" as shown below.
From the Update menu, locate the layer in question, replace the current contents of the text in the field, and click Update at the bottom right of the menu.
Once you've done that, refresh the dashboard and you should see the new data.
Again, all of the above is for a feature layer, not a service layer, so your mileage may vary.
Chip
Hi,
I have not dealt with service datasets, so my suggestions below might well not apply to your situation.
What I have needed to do is swap out feature layers in a map that is used by a dashboard for very similar reasons as you've described.
The key with this is to learn what the service URL for a feature layer is so that you can swap it out in the map's JSON in AGO Assistant.
Go to the feature layer's overview page, scroll to the bottom and locate the URL text box, as shown below. Click the button to the right of the text box to copy the service URL into your clipboard.
Next, you can either edit the map's JSON in AGO Assistant to update the service "url" in the feature layer definition (which is pretty danged tedious, but doable) -OR- use the "Update the URLs of Services in a Web Map" as shown below.
From the Update menu, locate the layer in question, replace the current contents of the text in the field, and click Update at the bottom right of the menu.
Once you've done that, refresh the dashboard and you should see the new data.
Again, all of the above is for a feature layer, not a service layer, so your mileage may vary.
Chip
Hi Chip,
Wow, thank you so much. This is exactly what I needed and I had no idea! Changing the URLs of Services in a Web Map worked so beautifully, and your documentation was excellent. Thank you so much, again!
Brooke