cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
879
Views
2
Helpful
1
Replies

Difference in Finesse 9.1.1 and 10.x JavaScript Libraries

Absaar Javed
Level 4
Level 4

Hello

In finesse 9.1.1 we access agent's info using JavaScript library i.e. finesse.js, as follows:

  • user.getFirstName() => agent's first name
  • user.getLastName() => agent's last name
  • user.getId()             => agent's Id
  • user.getExtension() => agents extension
  • util.getCredentials(_prefs.getString("authorization")) => agent's authorization string

And the dialog info as follows:

  • dialog.getFromAddress() => new call's ANI
  • dialog.getParticipants()     => get participants list in a dialog
  • dialog.getMediaProperties() => get media properties call variables list etc

Does any of the above methods have been changed or removed from the javascript library of finesse 10.x, or they still exist and

can be consumed in the same way as mentioned above?

1 Accepted Solution

Accepted Solutions

golmsted
Level 4
Level 4

Hey Absaar,

We try our very best to ensure our Finesse JS Library is backwards compatible with the previous release.  That means we generally never change/remove methods from one release to the next, only add new stuff.  There have been some exceptions in the past, but they have been very rare (and we make sure the old method works without breaking anything).  Looking at the items you list above, I am 99.9999% sure that none of these changed in any way. 

That being said, we *definitely* change the internal implementation of the finesse.js.  Which means you have to make absolutely sure that you are using the version of finesse.js that goes with the Finesse Server you are connecting to.  This means if you are someone who develops Gadgets for various versions of Finesse, you need to package the right version of the library with your Gadgets.

We realize that is tedious, so something that is coming with 10.6/11.0 of Finesse we have moved the finesse.js (and it's related jquery.min.js) to a well-known location within the Finesse Server.  This will allow you to simply relatively reference /finesse/desktop/assets/js/finesse.js and /finesse/desktop/assets/js/jquery.min.js (when hosting your Gadgets inside the Finesse Server) and you will load the Finesse JS Library directly compatible with Finesse Server being loaded from.

Hope this helps,

g.

View solution in original post

1 Reply 1

golmsted
Level 4
Level 4

Hey Absaar,

We try our very best to ensure our Finesse JS Library is backwards compatible with the previous release.  That means we generally never change/remove methods from one release to the next, only add new stuff.  There have been some exceptions in the past, but they have been very rare (and we make sure the old method works without breaking anything).  Looking at the items you list above, I am 99.9999% sure that none of these changed in any way. 

That being said, we *definitely* change the internal implementation of the finesse.js.  Which means you have to make absolutely sure that you are using the version of finesse.js that goes with the Finesse Server you are connecting to.  This means if you are someone who develops Gadgets for various versions of Finesse, you need to package the right version of the library with your Gadgets.

We realize that is tedious, so something that is coming with 10.6/11.0 of Finesse we have moved the finesse.js (and it's related jquery.min.js) to a well-known location within the Finesse Server.  This will allow you to simply relatively reference /finesse/desktop/assets/js/finesse.js and /finesse/desktop/assets/js/jquery.min.js (when hosting your Gadgets inside the Finesse Server) and you will load the Finesse JS Library directly compatible with Finesse Server being loaded from.

Hope this helps,

g.