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.
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.
Hi André
You’re right, updated the answer accordingly.
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.