Table

smmCampaignQuery

Campaign queries

Holds the named queries that belong to a marketing campaign. Each record is identified by the campaign ID and the query name, and links to the campaign record. It also stores a description and a class reference.

Table name
smmCampaignQuery
Module
Sales and marketing
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
SmmMA
Primary index
CampaignIdNameIdx
Replacement key
None
Key fields
CampaignId, NameId
Model
Foundation

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CampaignIdThe campaign that the query belongs to.String
smmCampaignId
NosmmCampaignTable.CampaignIdNone
NameIdName that identifies the query within the campaign.String (60)
smmCampaignQueryName
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionShort text that explains what the query is for.String (60)
smmCampaignQueryDescription
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QueryClIdNumber of the class linked to the query, shown as a class description.low confidenceInteger
ClassId
YesNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (1)

Each relation joins smmCampaignQuery to another table on the fields shown.

  • smmCampaignTable → smmCampaignTable

    Join on CampaignId = smmCampaignTable.CampaignId

    Many smmCampaignQuery records → zero or one smmCampaignTable record

Get this data out

No public entity reads from smmCampaignQuery. Its data is only reachable through the application, a custom entity or a database export.

Need help with smmCampaignQuery in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk