Skip to main content
Question

Retrieving the name of an ArcGIS Online feature service

  • February 11, 2026
  • 7 replies
  • 6 views

ferdinandbogman
Contributor
Forum|alt.badge.img+6

My workbench tries to read features from ArcGIS Online feature services, write them to a different database and, if successful, delete them from their ArcGIS Online feature service. I’ trying to use as few feature writers as possible, so I use attributes to descern feature services and their layers. Most feature services contain only one layer, but the name of the layer can be different from the name of the feature service.

I can get the name of the layer from the format attribute “fme_feature_type” and use that for the “Layer Name” in the Feature Writer parameters:
 



But in the “Writer” group (button: “Parameters...”) I also want to use an attribute for the parameter “Selected Feature Service”.
 


Is it possible to get the name of the feature service from the reader?

7 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • February 11, 2026

If you expose the arcgisfeatureservice_feature_url on the reader you should be able to get the Feature Service name from that

 

If you’re using an attribute to set the feature service to read in a feature reader you could also set merge initiator and result on the reader to maintain that attribute on the features read.


ferdinandbogman
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 12, 2026

Thank you for that quick reaction! Unfortunately, that format attribute doesn't seem to be available. The list of format attributes lists only these:
 

 

(Note that I am dealing with a feature service in ArcGIS Online, not ArcGIS Server or Enterprise.)


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • February 12, 2026

Ah, I’ve assumed you were using the newer ArcGIS Feature Service reader which reads both AGOL and Enterprise.


ferdinandbogman
Contributor
Forum|alt.badge.img+6

I guess the availability of these parameters depends on FME, not on ArcGIS Online, right? Does the new connector provide this format attribute for ArcGIS Online feature services?


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • February 12, 2026

Yes, it’s populated when connecting to AGOL with the feature service format.


ferdinandbogman
Contributor
Forum|alt.badge.img+6

Thanks, I am trying to get that new connection running (but getting a spinner so far😐).


ferdinandbogman
Contributor
Forum|alt.badge.img+6

Got it!
 

It's not exactly what I wanted, though. I was looking for just the feature service name. I have to extract that from the full url:

https://…/arcgis/rest/services/BP_Zaakvlak/FeatureServer/0/10

That's probably doable.

 

But, since I've put in the feature service information manually, I might as well solve it by creating attributes in advance:
 

 

...and use those to configure the reader:
 

 

(and, later on, the witer).

I could even put these values in a CSV-file, so changes in the configuration can be made easier. For example, changing from a test to a production feature service.

Thanks for helping me out!