Originally when we were updating booking properties we were using the 'SrmManagers.ResourceManager.SafelyUpdateReservationInstanceProperties' method, however when looking into the documentation it looks like we should be using the 'reservationInstance.UpdateServiceReservationProperties' method.
With the 'SafelyUpdateReservationInstanceProperties' method we validated the property we are updating. What is the preferred way of setting the booking properties and should we still validate what properties are set with the 'UpdateServiceReservationProperties' method?
FYI: We were checking if we are not updating any of the 'KnownProperties.GetAllPublicConstantStringValues()' or if the property does not contain any of the forbidden characters (. or # or * or , or " or ')
Hi Michiel,
The preferred way is using reservationInstance.UpdateServiceReservationProperties like the documentation states.
That method will sync consecutive updates and waits for the values to take effect to not have the error 'PropertyAlreadyModified'.
Yes, it will make those validations.
Will this method also do any validation on the property names (e.g. known properties or forbidden characters) used or should we still handle that checking on our side?