Skip to main content

Groups

EntityDatastoreDatastore.Group

Groups categorize commercial relationships (customers, leads, prospects) for segmentation and reporting.

Use the Datastore_Group endpoint to query groups.

Endpoints

List Groups

GET/v1/odata/Datastore_Group

Single Group

GET/v1/odata/Datastore_Group({id})

Fields

Datastore Fields (inherited)

FieldTypeDescription
NameStringDisplay name
CodeStringUnique code identifier
LocalizedNameStringLocalized display name
IsDefaultBooleanWhether this is the default value

Relationships

RelationshipTarget EntityCardinalityDescription
CommercialRelationRelationship_Organization_CommercialRelationship1:NCommercialRelation
CommercialRelationshipRelationship_Person_CommercialRelationship1:NCommercialRelationship

Expanding Relationships

GET/v1/odata/Datastore_Group({id})?$expand=CommercialRelation
GET/v1/odata/Datastore_Group({id})/CommercialRelation

Filtering Examples

GET/v1/odata/Datastore_Group?$filter=Name eq '{Name}'&$top={top}
GET/v1/odata/Datastore_Group?$filter=contains(Name, '{Name}')&$top={top}
GET/v1/odata/Datastore_Group?$filter=Code eq '{Code}'&$top={top}
GET/v1/odata/Datastore_Group?$filter=IsDefault eq {IsDefault}&$top={top}