Skip to main content
Solved

HTTP Caller - get info from _website_url for ESRI portal layer

  • December 11, 2024
  • 5 replies
  • 109 views

marta.podsiad
Supporter
Forum|alt.badge.img+9

Hi,

I am struggling to read the content of a layer published to ESRI portal. I have a  _website_url

https://gis-eu.xxx.com/arcgis/rest/services/LayerTest_Pt_01/FeatureServer/0

for ESRI portal layer.

 

For example I need to get Item Id

 

HTTP_Caller does not get this info in _response_body

Best answer by ebygomm

The request just needs to the ?f=pjson appending at the end, e.g.

 

….LayerTest_Pt_01/FeatureServer/0?f=pjson

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • December 11, 2024

I have managed to make it work. However, how can I get the Service Item Id: from the sting

 

<b>Display Field:</b> objectid<br/><br/>
<b>Type: </b> Feature Layer<br/><br/>
<b>Geometry Type:</b> esriGeometryPoint<br/><br/>
<b>Description: </b> <br/><br/>
<b>Service Item Id: </b> 4c0f943fb60a4a369104f33d1ad2af4f<br/><br/>


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • December 11, 2024

It’s going to be easier to retrieve the information you need if you get the initial call to return json so 

 

?f=pjson

 

on the end of your request

 

Then a jsonextractor

 


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • December 11, 2024

Hi, 

 

How can I get this info in json format

 


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • December 11, 2024

The request just needs to the ?f=pjson appending at the end, e.g.

 

….LayerTest_Pt_01/FeatureServer/0?f=pjson

 


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • December 12, 2024

Such an easy fix. Thank you very much!!!