This function returns a query object containing a list of installed extensions. It takes no arguments.
extensionList()
→ returns query
This example shows a very basic usage of the function to get a list of available extensions.
dump(extensionList());
This example was created by Michael Born to check the version of an installed extension.
var extension = extensionList().filter( ( extension ) => extension.name == "Hibernate ORM Engine" );
if ( !extension.recordCount ){
throw( "Hibernate extension is not installed; please install it now." );
} else {
var installedExtensionVersion = extension.version;
writeOutput( "You have the Hibernate extension version " & installedExtensionVersion & " installed." );
}
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.