0
Requested

RecordHelper.GetClassificationIds(Guid[] recordIds)

Nik De Clercq 4 years ago in ADAM Core updated by petra.tant 4 years ago 1

In ADAM pre 5.5 it was possible to do this:

var someRecordIds = new Guid[] { ... };

var query = new SearchExpression("Record.Id in ?", someRecordIds);

var classIds = new ClassificationHelper(app).GetIds(query);

In ADAM 5.7.1 that is no longer possible. There is also no alternative.

I understand why the query is no longer possible, but I would like to suggest an alternative. Would it be possible to create this helper method:

var classIds = new RecordHelper(app).GetClassificationIds(someRecordIds);

Of course that is only useful when the GetClassificationIds doesn't load the records behind the scene.


fyi: I am aware that I could load all the records in someRecordIds and then extract the classification IDs from there. Although that is an alternative, I can image you guys can do this in a more performant way. A way in which you don't load anything that is not a classification ID.

search