Workflow: Relationship Query Task
The intended result is to query a table that is related to a FeatureSet for fields matching the relationship.
A Query task was used on a Feature Layer and the ObjectIDs were retrieved as list integers.
However, the Relationship Query task does now allow for list items to be used. The ObjectID input of the Relationship Query task only allows for a string to be the input.
There are no conversion activities for turning a List into a String. When the VB script task was used to with a script to convert the list to a string, it states that the variables had not been declared, when they had been. How can ObjectIDs be pushed from a Query task to the Relationship Query task?
0
-
Hi Lee,
You can use VB.Net expressions in workflow activities without needing to use the VB Script activity. For the Object Ids property on Relationship Query Task, try using an expression like this:
String.Join(",",myListVariable)
That should take myListVariable and convert it to a string, while inserting a "," character between each item.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar