Use of Get Layer Info By Property activity
Someone has experience with the Get Layer Info By Property activity in a workflow?
I can get the value of an added property to a layer in the site configuration.
But asking for a "built-in" property of the layer (e.g. DisplayName) I always get an empty result list. When I read the documentation it seems asking for the DisplayName property is supported?
-
The activity cannot be used with built-in layer properties. It only applies to the custom properties that you add.
When the Workflow help refers to the DisplayName property it is decribing the properties of the result EssentialsLayerInfo object.
The intent of this activity is to provide an alternative way to find layers. Normally you would need to know the Map Service ID and Layer Name/ID to find a layer. This activity allows you to decorate the layer with a simple arbitrary property of your chosing and then the workflow can find it by that property alone.
--Ryan
0 -
Thank you.
Do you know if there is a way to get a list of the layers in a site in a workflow, without using a custom module?
0 -
No, unfortunately there isn't.
--Ryan
0 -
Is there a way to see the structure of the EssentialsLayerInfo object returned by the get layer info by property task? I'm trying to get the URL of the map service the layer belongs to. 0 -
I've used 'Get Layer Info By Property' to obtain the mapservice ID and url. There's quite a few properties available with this function but you mayrun into difficulties if the layer name is not unique. I have a workflow that populates a table with the Display name, layer name, MapServiceID, layerID and MapServiceURL 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare