CDM/schemaDocuments/Marketing/LinkedInLeadGen/Lead.1.1.cdm.json

1147 строки
40 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "_allImports.1.1.cdm.json"
}
],
"definitions": [
{
"entityName": "Lead",
"extendsEntity": "base_Lead/Lead",
"exhibitsTraits": [
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Lead"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Prospect or potential sales opportunity. Leads are converted into accounts, contacts, or opportunities when they are qualified. Otherwise, they are deleted or archived."
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.1"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "leadSourceCode",
"purpose": "hasA",
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
"entityShape": "listLookupValues",
"constantValues": [
[
"en",
"Advertisement",
"1",
"0"
],
[
"en",
"Employee Referral",
"2",
"1"
],
[
"en",
"External Referral",
"3",
"2"
],
[
"en",
"Partner",
"4",
"3"
],
[
"en",
"Public Relations",
"5",
"4"
],
[
"en",
"Seminar",
"6",
"5"
],
[
"en",
"Trade Show",
"7",
"6"
],
[
"en",
"Web",
"8",
"7"
],
[
"en",
"Word of Mouth",
"9",
"8"
],
[
"en",
"Other",
"10",
"9"
],
[
"en",
"LinkedIn Sponsored Form",
"192350000",
"10"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"LeadSourceCode"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Lead Source"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Select the primary marketing source that prompted the lead to contact you."
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "leadsourcecode",
"displayName": "Lead Source",
"description": "Select the primary marketing source that prompted the lead to contact you.",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'leadSourceCode_display' is added to the 'Lead' entity to provide the localized display text for the value of the listLookup attribute 'leadSourceCode'",
"name": "leadSourceCode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true,
"isNullable": true
}
}
},
{
"name": "companySize",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_companysize"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Company size"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the size of the company the lead belongs to"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_companysize",
"displayName": "Company size",
"description": "Enter the size of the company the lead belongs to",
"maximumLength": 100
},
{
"name": "degree",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_degree"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Degree"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the highest education level achieved"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_degree",
"displayName": "Degree",
"description": "Enter the highest education level achieved",
"maximumLength": 100
},
{
"name": "fieldOfStudy",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_fieldofstudy"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Field of study"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the lead's field of study"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_fieldofstudy",
"displayName": "Field of study",
"description": "Enter the lead's field of study",
"maximumLength": 100
},
{
"name": "graduationDate",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_graduationdate"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Graduation date"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the lead's graduation date from the last school or university"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_graduationdate",
"displayName": "Graduation date",
"description": "Enter the lead's graduation date from the last school or university",
"maximumLength": 100
},
{
"name": "industry",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_industry"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Industry"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the industry the lead belongs to"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_industry",
"displayName": "Industry",
"description": "Enter the industry the lead belongs to",
"maximumLength": 100
},
{
"name": "jobFunction",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_jobfunction"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Job function"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the lead's job function"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_jobfunction",
"displayName": "Job function",
"description": "Enter the lead's job function",
"maximumLength": 100
},
{
"name": "latestsubmissiondate",
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_latestsubmissiondate"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Latest Form Submission Date"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_latestsubmissiondate",
"displayName": "Latest Form Submission Date",
"description": ""
},
{
"entity": {
"entityReference": "LinkedInCampaign",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"LinkedInCampaign/(resolvedAttributes)/linkedInCampaignID"
]
}
]
},
"name": "linkedInCampaign",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'LinkedInCampaign'.",
"name": "linkedInCampaignId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"LinkedIn Campaign"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msdyncrm_linkedincampaign",
"displayName": "LinkedIn Campaign",
"description": ""
}
}
}
},
{
"name": "linkedinsubmissioncount",
"purpose": "hasA",
"dataType": "integer",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_linkedinsubmissioncount"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "minimumValue",
"value": "-2147483648"
},
{
"name": "maximumValue",
"value": "2147483647"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"LinkedIn Form Submissions"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Number of submissions by this lead"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_linkedinsubmissioncount",
"displayName": "LinkedIn Form Submissions",
"description": "Number of submissions by this lead",
"maximumValue": "2147483647",
"minimumValue": "-2147483648"
},
{
"name": "school",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_school"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"School"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the last school or university attended"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_school",
"displayName": "School",
"description": "Enter the last school or university attended",
"maximumLength": 100
},
{
"name": "seniority",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_seniority"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Seniority"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the lead's seniority in their organization"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_seniority",
"displayName": "Seniority",
"description": "Enter the lead's seniority in their organization",
"maximumLength": 100
},
{
"entity": {
"entityReference": "LinkedInLeadGenForm",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"LinkedInLeadGenForm/(resolvedAttributes)/linkedinformId"
]
}
]
},
"name": "sourceform",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'LinkedInLeadGenForm'.",
"name": "sourceformId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Source LinkedIn Form"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"LinkedIn form this lead came from"
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msdyncrm_sourceform",
"displayName": "Source LinkedIn Form",
"description": "LinkedIn form this lead came from"
}
}
}
},
{
"name": "startDate",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyncrm_startdate"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Start date"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Enter the start date for the last school or university"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msdyncrm_startdate",
"displayName": "Start date",
"description": "Enter the start date for the last school or university",
"maximumLength": 100
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Marketing/LinkedInLeadGen/Lead.1.1.cdm.json/Lead/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
],
"sourceName": "Lead",
"displayName": "Lead",
"description": "Prospect or potential sales opportunity. Leads are converted into accounts, contacts, or opportunities when they are qualified. Otherwise, they are deleted or archived."
}
],
"documentVersion": "1.1"
}