Skip to main content

Sources

EntityDatastoreDatastore.Source

Sources track where sales opportunities originated from (e.g., website, referral, cold call, trade show).

Use the Datastore_Source endpoint to query sources.

Endpoints

List Sources

GET/v1/odata/Datastore_Source

Single Source

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

Fields

Datastore Fields (inherited)

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

Relationships

RelationshipTarget EntityCardinalityDescription
SalesOpportunityActivity_SalesOpportunity1:NSalesOpportunity

Expanding Relationships

GET/v1/odata/Datastore_Source({id})?$expand=SalesOpportunity
GET/v1/odata/Datastore_Source({id})/SalesOpportunity

Filtering Examples

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