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
    • 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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to show a new Job’s field on Jobs Manager and Booking Manager?

Solved914 views13th July 2023Booking Manager Job Manager SRM
2
Yohan Silva [DevOps Advocate]166 9th August 2022 0 Comments

Hello Dojo,

We created a new field on Jobs. How can we make the Dataminer read that field and show it on Jobs and Booking Managers?

Regards,
Yohan

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 13th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Bruno Dias [SLC] [DevOps Member]2.36K Posted 11th August 2022 0 Comments

Hi Yohan,

This new Job field will be new metadata to be added to your booking. This can be achieved by adding a new custom booking property to your bookings. Then, you need to update the code that is converting Jobs to Bookings to read the value from the Job field and add it to the booking property.

How to implement this:

  1. Go to BOOKING MANAGER > CONFIG tab.
  2. Enable Custom properties.
  3. Right-click in the table and select 'Add property...'

4. Fill in Property fields

5. Update automation script that converts Jobs to Bookings to read the Job field value

SectionDefinition generalDef = _jobHelper.SectionDefinitions.Read(SectionDefinitionExposers.ID.Equal(defaultSectionDefinitionExtension)).First();

string servDefJobFieldValue = job.GetFieldValue<string>(generalDef, generalDef.GetFieldDescriptorById(new FieldDescriptorID(jobFieldGuid))).Value;

6. Update automation script that converts Jobs to Bookings to include the Job field value as property value.

// Selecting properties - PLEASE USE VISUAL STUDIO TO SEE ALL OPTIONSvarproperties = newList<Property>();
varproperty = bookingManager.Properties.FirstOrDefault(x =>
string.Equals(x.Name, "WO", StringComparison.InvariantCultureIgnoreCase));

if(property != null)
{
property.Value = servDefJobFieldValue ;
property.IsChecked = true;
properties.Add(property);
}

// Safe method, won't throw exceptions, though in case of error cannot be seen

var success = bookingManager.TryCreateNewBooking(engine, bookingData,

functions, customEvents, properties, null, out ReservationInstance reservation);

After this, you should be able to see the booking properties in your Bookings list. Do note by default the booking properties are hidden but you can enable them by right-clicking the columns in the list and show the property:

You can also check more details from the code snippets from above on this link: DataMiner Docs

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 13th July 2023
You are viewing 1 out of 2 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