diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/CommercialFeatureServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/CommercialFeatureServiceImpl.java index d06a2194b7..1ac7f3eda7 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/CommercialFeatureServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/CommercialFeatureServiceImpl.java @@ -84,7 +84,7 @@ public class CommercialFeatureServiceImpl implements CommercialFeatureService { MetadataList metadataList = new MetadataList(); try { MetadataManagementService metadataManagementService = DeviceMgtAPIUtils.getMetadataManagementService(); - PaginationResult result = metadataManagementService.retrieveAllMetadata(request); + PaginationResult result = metadataManagementService.retrieveAllMetadataWithFilter(request, "commercialFeatures"); metadataList.setCount(result.getRecordsTotal()); metadataList.setMetadataList((List) result.getData()); return Response.status(Response.Status.OK).entity(metadataList).build();