I need to add a related table for field inspections to a layer that has already been uploaded to AGOL with editing privileges. My thought is to do the following process. I wonder if someone could give advise if any of this would break things on the feature service in some way.
- Turn off editing on the feature service temporarily.
- Download the entire feature service as a FGDB (~10 layers)
- Re-source the ArcGIS Pro map that was the origin of the service definition to this newly downloaded FGDB.
- Create the relationship class and table in the extracted database and add the table to the map.
- Replace the feature service as I would normally using "Share -> Overwrite Web Layer", but with the re-sourced data - note that the layers in the FGDB have different names than the original FGDB, so that gives me pause...
- I also wonder about GlobalIDs and if they will stay the same when I download/upload the feature service. I will use a "FACILITYID" for the relationship class, but still...
- Everything works as expected and I can now create field inspections in Collector with the updated feature service.
It would be even better if I could do this in place some how, but I am not sure if that is possible...