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

SRM booking creation Guid

Solved1.11K views2nd June 2023Automation script SRM
3
Philip Argent [DevOps Enabler]579 15th March 2023 0 Comments

Can the Guid of a SRM booking be defined when creating one from an automation script?

We have an element that ingests event information, and passes them to an automation script silently, these events have a Guid already, so it would be useful to keep the same one when creating the booking SRM.

Jorge Dias [SLC] [DevOps Enabler] Answered question 16th March 2023

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
6
Jorge Dias [SLC] [DevOps Enabler]4.79K Posted 16th March 2023 1 Comment

Hi Philip,

If you are using SRM Solution, you cannot specify the ID of the booking, you should have a custom property that will hold that ID. If you need to get the reservation by that property you can then use method GetReservationInstancesByProperty present in namespace Skyline.DataMiner.Library.Solutions.SRM.

If you don’t use SRM Solution, Flávio’s response is correct.

Jorge Dias [SLC] [DevOps Enabler] Answered question 16th March 2023
Philip Argent commented 16th March 2023

Hi Jorge,
That’s what we’re doing at the moment.
I’m going to test the other answers to see if they work or not.

6
Peter Vanpoucke [SLC] [DevOps Advocate]1.01K Posted 16th March 2023 2 Comments

Hi Philip

When you’re using the SRM framework it’s possible to get the ID for the new booking by checking the BookingId property in the Booking object used when calling CreateNewBooking or TryCreateNewBooking.

The property is available since version 1.2.27 of the framework.

It’s possible to use that ID in e.g. SrmLogHandler to create a logger object before the booking is created.

Peter Vanpoucke [SLC] [DevOps Advocate] Posted new comment 16th March 2023
André Rodrigues [SLC] [DevOps Member] commented 16th March 2023

The BookingId property is a getter only, so it’s not possible to set the Id.
This is to make sure that each booking creation is done with a new ID.

Peter Vanpoucke [SLC] [DevOps Advocate] commented 16th March 2023

Hi André

You’re right, updated the answer accordingly.

6
Flávio Jacinto [SLC] [DevOps Advocate]718 Posted 15th March 2023 1 Comment

Hi Philip,

Yes, it’s possible to define a particular Guid for a SRM Booking upon instanciation of the ServiceReservationInstance class via the set of the ID property, or via the usage of one of the constructor overloads, which receives the Guid of the Booking as an argument.

Flávio Jacinto [SLC] [DevOps Advocate] Answered question 15th March 2023
Philip Argent commented 16th March 2023

Thanks Flavio,
I’ll test and feed back.

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