Picture of Uwe 2460
Registered 9 years 196 days
Uwe 2460 Friday, 23 April 2021, 04:03 PM
verify devices DeleteDomain success with DomainDeleted message
Hello everyone,

after adding domain in devices, I want also be able to delete the domain and verify delete success.

The domain id is retrieved with GetDomains. After this, the DeleteDomain message is sent. A DeleteDomainResult is always received without error indication, no matter if delete was successful or not.
SEND> {"mt":"DeleteDomain","id":187,"src":"DeleteDomain"}
RECV< {"mt":"DeleteDomainResult","src":"DeleteDomain"}

In browser console log I see a DomainDeleted messages from devices, that I don’t receive in my implementation. E.g.: {"mt":"DomainDeleted","id":187}
This would be a relevant message to verify success. Do I have to subscribe to something in order to receive this message?

The workaround would be, to send GetDomains again, but hopefully this is just something simple, that I have missed.

kind regards
Uwe
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 121 days
Daniel Deterding (innovaphone) Monday, 26 April 2021, 06:41 AM
1 of 1 users consider this post helpful
Re: verify devices DeleteDomain success with DomainDeleted message
Hi Uwe,

if you intiallay send a {"mt":"GetDomains","recvUpdates":true}, you'll receive updates of domains and like this, you'll also receive the DomainDeleted message.

Greetings,
Daniel
Picture of Uwe 2460
Registered 9 years 196 days
Uwe 2460 Monday, 26 April 2021, 02:48 PM
Re: verify devices DeleteDomain success with DomainDeleted message
Hi Daniel,

i used {"mt":"GetDomains","recvUpdates":"true"} instead {"mt":"GetDomains","recvUpdates":true}.
So problem is fixed now.

Thanks for support!
Uwe

← You can define your color theme preference here