Display the build version number and deployment date

0
Hi There, If we have many branch lines so after deploying how can we get version number and deployment date for the same ?
asked
2 answers
1

You could have an object in your database for this purpose and use the GetRuntimeVersion action from community commons to set its value, together with the current date in an after start-up microflow. 

answered
1

Uset the java action getRuntimeVersion() (this is available in community common module)

 

Replace the getRuntimeVersion() method in javasource/communitycommons/Misc.java with

public static String getRuntimeVersion() {
        Package currentPackage = RuntimeVersion.class.getPackage();
        String specVersion = currentPackage.getSpecificationVersion();
        String implVersion = currentPackage.getImplementationVersion();
        if(specVersion != null && implVersion != null) 
            return implVersion + " (build " + specVersion + ")"; 

        return
            "unreleased";
    }

 

this will give you build number.

 

 

answered