This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to add a visible to current user search condition when searching for value list items?

Hi!

Using VAF, is there a way to add a visible to current user search condition when searching for value list items? I know it's possible to add that condition when executing a normal search and I have used it successfully before like this:

var sc = new SearchCondition();

sc.Expression.SetPermissionExpression(MFPermissionsExpressionType.MFVisibleTo);
sc.ConditionType = MFConditionType.MFConditionTypeEqual;
sc.TypedValue.SetValue(MFDataType.MFDatatypeLookup, env.CurrentUserID);

However I can't find a way to do a similar thing when searching for value list items using this:

env.Vault.ValueListItemOperations.SearchForValueListItems

Is it even possible and if not, are there any workarounds?

Kind regards

Jussi