I have an object class RemitTo which has a property ParentVendor, which is a lookup from another object which has a property VendorCode.
I want to construct a search for RemitTo objects where the ParentVendor.VendorCode is equal to something.
I can get the ParentVendor lookup Property as follows:
' Create a search condition for the Parent Vendor.VendorCode
oSearchCondition.ConditionType = MFConditionType.MFConditionTypeContains
oSearchCondition.Expression.DataPropertyValuePropertyDef = oVault.PropertyDefOperations.GetPropertyDefIDByAlias(LSAliasPropertyDefIDParentVendor)
oSearchCondition.TypedValue.SetValue(MFDataType.MFDatatypeText, "LAMI001")
oSearchConditions.Add(-1, oSearchCondition)
But what I really want is as ParentVendor.VendorCode, see attached screenshot.
