The M-Files Community will be updated on Tuesday, April 2, 2024 at 10:00 AM EST / 2:00 PM GMT and the update is expected to last for several hours. The site will be unavailable during this time.

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

Parents Reply Children
No Data