Hi Dojo,
How can I retrieve all reservations? And separately, how can I define a filter by either the Status prop or the Booking Life Cycle status?
Can't seem to pass in a null filter value to `SrmManagers.ResourceManager.GetReservationInstances()`, so is there a suggested way to retrieve all of them without me resorting to supplying `ReservationInstanceExposers.End.GreaterThan(new DateTime(1970, 1, 1))`.
I can't seem to find adequate documentation on the ReservationInstanceExposers class.
Thanks
Hi Vish,
I found another example on
SRM code snippets | DataMiner Docs
Where it makes use of the ResourceManagerHelper.
Still not all of them can be retreived, but if you know the guid of the reservation then you can retreive some and add them to an array or list for example.
private ReservationInstance RetrieveReservationInstance(Guid id) { // Retrieve the ReservationInstance using its ID var filter = ReservationInstanceExposers.ID.Equal(id); return _helper.GetReservationInstances(filter).FirstOrDefault(); }