All examples in the documentation I have found for getting the omniToolkitAPI object in lightning show this being done via a lightning component, using a
I need to support a situation where a notification arrives from an external service, and I need to react to it by setting the omni channel status for a user via the omniToolkitAPI, so there is no non-hacky way I can see to route this through a lightning component. Is there any way to get hold of the omniToolkitAPI object when the transaction is not triggered by a user action, without the need to use the
<lightning:omniToolkitAPI ...> tag?
To cut a long story short, I need to be able to programatically set a user's status. I cannot immediately see a way to do this under Lightning, even though it's simple under Classic.