---
schema_version: "1"
id: bd38800f2b4f911afaa01eea9bc7eb807a53773b4fdc637199315a75dcf086a6
title: getUngroupedRecords Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-getungroupedrecords-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-getungroupedrecords-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c907dc84bdbb0e36c7e98d8aa7854ca3f3d8220aff4f16e75433315b42593d53
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# getUngroupedRecords Method

Returns a set of paginated non-members of a specific member-type.

<!-- Section title is the name of the method followed by "Method". If appropriate, precede the method name with the class name and a colon.-->

## Class

<!-- broken link-->

<!-- Link(s) to the class(es) to which this method belongs. If more than one class implements the same interface, use an itemized list. Don't use a link if the class itself isn't documented for users, but do list the class name.-->


## Input Parameters

<!-- If this method has separate input and output parameters, split this section into two sections titled "Input Parameters" and "Output Parameters". Some methods of classes that implement VlocityOpenInterface2 might require an "Options Parameters" section as well.-->

| Parameter  | Required                                   | Description                                                                                                                                                                                                                                 |
| ---------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| parentId   | Required                                   | Opportunity ID.                                                                                                                                                                                                                             |
| contextId  | Required                                   | Parent cart ID (Master or Enterprise quote or order ID).                                                                                                                                                                                    |
| pageSize   | Optional: Defaults to 20                   | Page size for pagination.                                                                                                                                                                                                                   |
| offset     | Optional: Defaults to 0                    | Offset for pagination.                                                                                                                                                                                                                      |
| cartType   | Optional: Defaults to Quote                | Quote or order.                                                                                                                                                                                                                             |
| memberType | Optional: Defaults to return all the types | CPQ Group Member Type Name. For example: ServicePoint.                                                                                                                                                                                      |
| filters    | Optional                                   | Consists of Field to search on and the sub-string value to search against, separated by colon(:). Supports multiple such sets, separated by comma(,). Example: `vlocity_cmt__LoadProfile__c:SMB%20Low,vlocity_cmt__IsKeyAtPremises__c:true` |
| sortBy     | Optional                                   | Field to sort on along with the sort order. Example: `vlocity_cmt__PremisesId__r.vlocity_cmt__StreetAddress__c ASC`                                                                                                                         |

## Output Parameters

| Parameter | Description                                                    |
| --------- | -------------------------------------------------------------- |
| result    | JSONResult with non-member records for a specific member-type. |

## Example Input Data

<!-- This is usually JSON, but it could be XML or a single value. For methods of classes implementing VlocityOpenInterface2 that have options parameters, include those here.-->

```
{"parentId":"0060b00000vGbYbAAK","contextId":"0Q00b000000znTYCAY","offset":0,"pageSize":20,"memberType":"ServicePoint","cartType":"Quote"}
```

## Example Output Data

<!-- This is usually JSON, but it could be XML or a single value. Salesforce uses Return Type, but this takes care of that.-->

```
{"totalSize":0,"records":[{"displaySequence":-1,"Name":{"value":"May06_Acc01-Premise - ServicePoint - 2","previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__PremisesId__r":{"Name":"May06_Acc01-Premise","h_cpq_ecomm__StreetAddress__c":"lone Street","h_cpq_ecomm__City__c":"San Francisco","h_cpq_ecomm__PostalCode__c":"30080"},"h_cpq_ecomm__IsKeyAtPremises__c":{"value":false,"previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__LoadProfile__c":{"value":"SMB Low","previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__MarketIdentifier__c":{"value":"Identifier - 572.1531770676341 - 2","previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__ActivationDate__c":{"value":"2020-05-07","previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__UtilityProvider__c":{"value":"Other","previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__VoltageLevel__c":{"value":"Low","previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__AverageMonthlyUsage__c":{"value":9122,"previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"h_cpq_ecomm__OperationArea__c":{"value":null,"previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}},"Id":{"value":"a3h0b00000CwSUDAA3","previousValue":null,"originalValue":null,"messages":[],"label":null,"hidden":null,"fieldName":null,"editable":null,"dataType":null,"alternateValues":null,"actions":{}}}],"data":{"totalCount":1}}
```
