Changes
The GetObjectsByPropertyValue queries object [[Instance|instances]] by comparing a named property to a given value.
{{ActivityInfoBox
| title = Get Objects By Property Value
| version = 2.1.15+
}}
===Arguments===
{| class="wikitable sortable" | width = "50%"
|-
| PropertyValue|| {{Object_MSDN}}|| In || The value to compare against
|- align="left"
| Index|| {{Integer_MSDNInt32_MSDN}}|| In || The index if an indexed value is to be compared; set to -1 for regular value
|- align="left"
| FirstMatch|| [[BaseClass]] || Out || The first object the query returned
|}
===Usage===
This activity is used to find {{UBIK}} instances during the execution of a workflow, by comparing a named property to a given value. Technically this activity creates a query for a single property on the fly and executes it.
Load the MetaClass named ''PUMP'' and find all instances which have a ''POWER'' greater than 4 kilowatts:
{| class="wikitable" | width = "50%"
| Index|| <source lang = "vbnet">-1</source>
|}
{{Activity/End}}
==See also==