Skip to main content
Solved

Create feature service from URL in ArcGIS Portal

  • September 20, 2024
  • 5 replies
  • 92 views

amber369
Contributor
Forum|alt.badge.img+2

Hi All,

I'm still somewhat new to FME and am hoping someone can advise me.

Through another workbench I have been able to gather a a list of service URLs from an AGOL. I would now like to automate the process of creating a new item in ArcGIS Portal via the New Item > URL workflow.

I have looked through the Esri ArcGIS Portal Feature Service Reader/Writer and a few other transformers but none seem to accommodate for creating a referenced item via URL. Google is leading me nowhere either.

Any advice or pointers?

Thanks very much for your time!

 

Best answer by todd_davis

I don’t think there will be a transformer out of the box that will do this, but you just need to follow the same flow as what Esri does itself. This would be done via a few httpcaller and JsonFragmentor/JsonFormattors/JsonTemplators.

 

If you are use to the Esri rest api’s, its actually not to hard (there is probably a few hours works). If you are not use to the Esri apis, or apis in general, its probably pretty hard.

 

You get the details of the source featureservice and provide some of those details through to additem call:

https://developers.arcgis.com/rest/users-groups-and-items/add-item/

View original
Did this help you find an answer to your question?

5 replies

todd_davis
Supporter
Forum|alt.badge.img+20
  • Supporter
  • September 20, 2024

Hi,

Not exactly sure what you mean by “creating a referenced item via URL“. If you can expand of that?

 

If you want to create a new feature layer, then you could use something like the ArcGISOnlineConnector to publish a new item to Portal.

Cheers,

Todd


amber369
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 20, 2024

Hi Todd,

Apologies for the lack of clarity.

What i mean is to create a new feature service in ArcGIS Portal which is refencing the REST endpoint URL of another service. The same as what is described in this page (https://doc.arcgis.com/en/arcgis-online/manage-data/add-item-from-url.htm) but in bulk.

 

Thanks

Amber


todd_davis
Supporter
Forum|alt.badge.img+20
  • Supporter
  • Best Answer
  • September 20, 2024

I don’t think there will be a transformer out of the box that will do this, but you just need to follow the same flow as what Esri does itself. This would be done via a few httpcaller and JsonFragmentor/JsonFormattors/JsonTemplators.

 

If you are use to the Esri rest api’s, its actually not to hard (there is probably a few hours works). If you are not use to the Esri apis, or apis in general, its probably pretty hard.

 

You get the details of the source featureservice and provide some of those details through to additem call:

https://developers.arcgis.com/rest/users-groups-and-items/add-item/


amber369
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 23, 2024

Thanks Todd! Much appreciated.

 

Ill dig through the transformers you recommended and the linked page and hopefully get my head around it!


amber369
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 25, 2024

Just an update on how I achieved this for any others interested.

I used the HTTPCaller to make an addItem POST call.

Being new to this I found it helpful to navigate to the ESRI sharing api (https://[root]/content/users/[userName]/addItem) and actually run through creating an item manually with dev tools turned on to view the exact names used in the payload - as these would be used in the Multipart Upload portion of the HTTPCaller.

Thanks again Todd for your assistance!

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings