Picture of mitop
Registered 3 years 291 days
mitop Tuesday, 12 July 2022, 01:37 PM
UpdateObjectResult feature request
Hi again,

i am playing around with the PbxAdminApi on JS side. Everything works well, there is one behaviour of the "UpdateObjectResult" function to which I have a question.
- https://sdk.innovaphone.com/13r2/doc/appwebsocket/PbxAdminApi.htm#UpdateObject
-- Here it is mentioned that (UpdateObjectResult):

"Sent, when the object is updated, which means it is written to the database and the update is in effect in the PBX. The guid is delivered only if no guid was submitted with the UpdateObject request and a new object is created. "

If I now update several objects in a row, i.e. change existing objects, I do not get a GUID back. So I never know to which object the UpdateObjectResult belongs to, e.g. to inform a specific user about it. An internal mapping (what was sent and for what I have already received a response) cannot be built, because answers do not allways arrive in the same order as the requests. UpdateObject messages have to be processed sequentially at the moment, if I want to react to the result of an UpdateObject operation and the corresponding UpdateObjectResult. By trial and error i know that the PbxAdminApi can handle multiple UpdateObject commands without problems.

Would there be anything against sending the GUID always in the UpdateObjectResult and maybe add an additional flag to indicate if the object was created or modified and if it was successful?

At the moment I get along without the feature.


Best regards
Mladen
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Tuesday, 12 July 2022, 01:50 PM
1 of 1 users consider this post helpful
Re: UpdateObjectResult feature request
Hello Mladen,

for this purpose the property "src" can be set, to be able to map multiple requests:

https://sdk.innovaphone.com/13r3/doc/appwebsocket/AppWebsocket.htm#BaseMessage

Best Regards
Andreas Fink
Picture of mitop
Registered 3 years 291 days
mitop Tuesday, 12 July 2022, 01:57 PM
Re: UpdateObjectResult feature request
Ahhh ok thank you, right. I was so fixated on the "UpdateObjectResult" message that I didn't think of the src property

Best regards
Mladen
← You can define your color theme preference here