I was wondering if anyone would be able to help me with this issue. I am trying to create a flow to reach out to ESRI's REST API and grab the list of values for certain domain's in our feature layer.
I am not sure if it is possible, I am able to get the details of the feature layer through this but not the list of values for each domain.
I have attached a screen shot of the data I am trying to pull just in case.
Thank you to everyone in advance.
Good Day Greg,
There is a way to do get those domain values by using the HTTP action to make a REST request against the hosted feature layer. The response will return the values from the domain in the feature layer and then you can use them as needed in your flow.
Thank you for the response! I am going to take a look at this documentation today and get this going. Thank you again, I will update again after I attempt this!
When I try to post this query I get the following message.
It looks like the layer you are accessing is secured, so I am not able to build a query against that layer. It looks like you need to make a slight modification to the REST request to get it to return the domains.
That query should return all the domains for the feature service. If you wanted a specific layer, you could append the request with '&layers[layer index]'
I constructed a REST call against a publicly available hosted feature layer to help see the URL and variables and the associated response.
Please let me know how it goes.
Thank you so so much! That worked for me! The last question I have is can I filter the request to just pull data from a single field from within that layer?
For instance within that layer I have a field that is called "Genus" and there is 81 entries within that.
Here is a peak at the view page for that layer and some of the fields. If I am able to just pull the entries for a single field I will be able to pull off what I need!
You have been really awesome and helpful I really appreciate this!
I am glad this is helping.
Unfortunately the queryDomains operation does not have a parameter to query a single field for domains. Looks like you are going to have to parse through the JSON looking for the 'Genus' domain and get the values when you get to it.