Zum Hauptinhalt gehen

How to find the FirstSpirit Server version in module?

Kommentare

3 Kommentare

  • Zendesk API User
    Author: marro - 9/4/2015 8:24

    Hello Kavin,

    in FS 4.2 you can find the server version information in the Project:

    p = context.getProject();

    context.logInfo("Major: " + p.getMajorVersion());

    context.logInfo("Minor: " + p.getMinorVersion());

    context.logInfo("Build: " + p.getServerBuild());

    Best regards,

    Donato

    0
  • Zendesk API User
    Author: kavin - 9/4/2015 9:59

    Thank you Donato Marro,

    According to the API documentation, getMajorVersion() returns the "major server version info (creation/importing time)".

    I am little bit confusion in this documentation. What is it mean "version info of creation/importing time"?

    will return current server version or server version of project created?

    Can i use the same code in FS 5.1 also? 


    0
  • Zendesk API User
    Author: marro - 9/4/2015 10:11

    Hi Kavin,

    sorry, you are right. The server version will be the version at creation/importing time of the project. So if you have updated the server in the meantime, you won't get the current server version.

    You can use the same code in FS 5.1.

    Regards,

    Donato

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.