This should create a record of assignment objects within specific selected user on HTML UI (Theproperty of Assigned to). By View, (using IS ONE OF property filter) it will show several assignments as i set.
const conditions1 = MFGrpc.SearchConditionArray.Create()
.Status(StatusType.STATUS_TYPE_OBJECT_TYPE, ConditionType.CONDITION_TYPE_EQUAL, Datatype.DATATYPE_LOOKUP, MFGrpc.Lookup.Create(10)) // otype assignment
.Status(StatusType.STATUS_TYPE_IS_DELETED, ConditionType.CONDITION_TYPE_EQUAL, Datatype.DATATYPE_BOOLEAN, false) // is deleted
.Property(100, ConditionType.CONDITION_TYPE_EQUAL, Datatype.DATATYPE_LOOKUP, MFGrpc.Lookup.Create(-100)) // "Class" property (ID 100)
.Property(44, ConditionType.CONDITION_TYPE_EQUAL, Datatype.DATATYPE_MULTI_SELECT_LOOKUP, [parseInt(document.getElementById("ass_users_ddl").value, 10)]); // Assigned to property
const search_resp1 = await ivault.SearchOperations.SearchObjects({
call_importance: 1, target: {mode: 0}, conditions: [conditions1.toJSON()], options: {}, limit: 0, timeout_in_seconds: 30
});
But by UIX javascript, it shows none record. The problem is suppossed to be in the condition type (I choose CONDITION_TYPE_EQUAL since condition for IS ONE OF doesn't exist) for DATATYPE_MULTI_SELECT_LOOKUP. I will prefer the simple solution to adjust above code than retrieving all assignments object & to loop to filter to get specified prefered MultiSelectLookup property.
So, how can i solve this issue ?
Regards,
