...
Interface
IServiceRequestManager
Syntax
Task<int> ExecuteCountQuery(ServiceRequestQuery serviceRequestQuery)
Returns
Task<int>
API Endpoint
Not applicable.
...
Code Block | ||
---|---|---|
| ||
//This is an exemple of a query using filtering for the place of supply and status. //This will filter all service requests for service id 11. const ServiceRequestStatus status = ServiceRequestStatus.InProgress; const string province = "ON"; var query = new ServiceRequestQuery { ServiceId = ServiceId, Page = 1, PageSize = 25, Version = 1.0F, Filter = $"PlaceOfSupply='{province}' AND Status='{status}'" }; var requestWithMetadatacount = await serviceRequestManager.ExecuteCountQuery(query); |
...
Code Block | ||
---|---|---|
| ||
//This is an exemple of a query using filtering for the place of supply and status. //This will filter all service requests for service id 11. const string province = "ON"; var query = new ServiceRequestQuery { ServiceId = ServiceId, Page = 1, PageSize = 25, Version = 1.0F, Filter = $"PlaceOfSupply='{province}'" }; var requestWithMetadatacount = await serviceRequestManager.ExecuteCountQuery(query); |
...
Code Block | ||
---|---|---|
| ||
//This is an exemple of a query using filtering for the place of supply and status. //This will filter all service requests for service id 11. const ServiceRequestStatus status = ServiceRequestStatus.InProgress; var query = new ServiceRequestQuery { ServiceId = ServiceId, Page = 1, PageSize = 25, Version = 1.0F, Filter = $"Status='{status}'" }; var requestWithMetadatacount = await serviceRequestManager.ExecuteCountQuery(query); |
...