Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

DOM Filter expressions

Solved131 views12th August 2025
3
Fenta Alemahu [SLC] [DevOps Enabler]1.22K 6th August 2025 0 Comments

Hi all,

A connector is designed to fetch data from DOM instances. In the connector QAction, there is a need to filter instances where the value of a field in the instance is not included in the list of certain values.

It is something like:

var exludedList = new List<string>{value1, value2,};
var filter = DomInstanceExposers.FieldValues.DomInstanceField(fieldDescriptorId).IsNotContained(exludedList);

How can I construct such a filter?

I don't seem to find such a filter in this documentation. https://docs.dataminer.services/dataminer/Functions/DOM/DomHelper_class.html

Fenta Alemahu [SLC] [DevOps Enabler] Selected answer as best 12th August 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Thomas Ghysbrecht [SLC] [DevOps Enabler]5.29K Posted 6th August 2025 2 Comments

Hi Fenta,

If I understand your use case correctly, you would like to only retrieve the DOM instances where a string value stored on the instance does not match any in a given list. Some kind of blacklist, so to say? If that is the case, you should be able to do so by creating an AND filter where each value is excluded using a 'NotEqual' filter.

var toExclude = new List<string> { "Value A", "Value B" };
var exclusionFilters = toExclude.Select(one =>
DomInstanceExposers.FieldValues.DomInstanceField(fieldDescriptorId).NotEqual(one));
var finalFilter = new ANDFilterElement<DomInstance>(exclusionFilters.ToArray());

Do keep in mind to not make this list too long as this will impact the filter performance. Also, on locally hosted DBs, you may run into a limit. It is recommended to keep the amount of excluded strings below 500 or so.

Fenta Alemahu [SLC] [DevOps Enabler] Selected answer as best 12th August 2025
Fenta Alemahu [SLC] [DevOps Enabler] commented 6th August 2025

Thank you Thomas. That is the use case. As you said the challenge will be that the toExclude list might get larger. I will test this approach.
Small correction: in the expression, it should be .NotEqual(one) instead of .NotEqual(toExclude), right?

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 6th August 2025

Yes, exactly! Apologies for the typo. I have updated my reply.

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin