Skip to main content

Functions

EntityDatastoreDatastore.Function

Functions represent job titles or roles that contacts can hold within an organisation (e.g., CEO, Sales Manager, Developer).

Use the Datastore_Function endpoint to query functions.

Endpoints

List Functions

GET/v1/odata/Datastore_Function

Single Function

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

Fields

Datastore Fields (inherited)

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

Relationships

RelationshipTarget EntityCardinalityDescription
ContactRelationship_Person_Contact1:NContact

Expanding Relationships

GET/v1/odata/Datastore_Function({id})?$expand=Contact
GET/v1/odata/Datastore_Function({id})/Contact

Filtering Examples

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