getConfigurationById function

Returns the configurations selected by ID.