How can we update the StatusId for a DOM Instance.
I thought that with the DomHelper class for a given DomInstance object we could just set the StatusId to update the status of the instance.
This however doesn't seem to work. Is it an issue or is it just not made to work like that?
What's the way to update the status if that's not the way?
Hi Jeroen,
You need to use below code to change the status of a DOM Instance.
domHelper.DomInstances.DoStatusTransition(instanceId, $"{currentStatus}_to_active");
Note that you need to have status transitions defined for this. More info can be found in the Docs.