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
    • Empower Replay: Limited Edition
    • Tutorials
    • Video Library
    • 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
    • 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)
    • Books We Like
    • >> Go to DataMiner Docs
  • DataMiner DevOps Professional Program
    • About the DevOps Program
    • Sign up for the DevOps Pogram
  • Downloads
  • Contact
    • Get in touch
    • DataMiner Support
    • DataMiner DevOps Support
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

How to find within DOM instance a particular section definition exists or not?

Solved567 views27th August 2024#automationscript #SectionDefinition DOM
1
Hari priya Venkatesan [DevOps Advocate]740 31st May 2024 1 Comment

How to find within DOM instance a particular section definition exists or not?

var domInstances= resourcemanagementHelper.DomInstances.ReadAll();
foreach (var domInstance in domInstances)
{
var abc= domInstance.Sections.Find(x=>x.SectionDefinitionID.Equals(Resourcemanagement.Sections.ResourceInternalProperties))

}

We are trying something like this but not able to figure out

Hari priya Venkatesan [DevOps Advocate] Selected answer as best 27th August 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 27th August 2024

I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Jens Vandewalle [SLC] [DevOps Enabler]9.50K Posted 3rd June 2024 0 Comments

Hi,

Is it possible to verify if ResourceManagement.Sections.ResourceInternalProperties is of type SectionDefinitionID? If this is from the MediaOps solution, then you need to use Resourcemanagement.Sections.ResourceInternalProperties.Id to make it work.

I see that you are now retrieving all DOM Instances. In case you are only interested in the instances containing this section, you can use below code which will be more performant.

var filter = DomInstanceExposers.SectionDefinitionIds.Contains(Resourcemanagement.Sections.ResourceInternalProperties.Id.Id);
var instances = resourcemanagementHelper.DomInstances.Read(filter);

Hari priya Venkatesan [DevOps Advocate] Selected answer as best 27th August 2024
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