I'm using Sitecore 9.1.1,
I Followed this Link to create a custom facet to each contact and its added successfully to xDB, I don't have a screenshot of it but its like the below image:
and this is my JSON file if it would help
{
"Name": "AccountModel",
"Version": "0.1",
"References": [
{
"Name": "XConnect",
"Version": "1.0"
},
{
"Name": "Sitecore.XConnect.Collection.Model",
"Version": "9.0"
}
],
"Types": {
"project.Models.AccountInformation": {
"Type": "Facet",
"BaseType": "Sitecore.XConnect.Facet",
"ClrType": "project.Models.AccountInformation, project, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"Properties": {
"username": {
"Type": "String"
},
"formattedName": {
"Type": "String"
},
"honorificPrefix": {
"Type": "String"
},
"entitlements": {
"Type": "String"
},
"x509Certificates": {
"Type": "String"
},
"schemas": {
"Type": "String"
},
"id": {
"Type": "String"
},
"externalId": {
"Type": "String"
},
"employeeNumber": {
"Type": "String"
},
"costCenter": {
"Type": "String"
},
"isDeleted": {
"Type": "Boolean"
}
}
}
},
"Facets": [
{
"Target": "Contact",
"Name": "AccountInformation",
"Type": "project.Models.AccountInformation"
}
]
}
What I tried to do next is create a custom tab in Experience Profile similar to "Details" tab and add the values of this Custom Facets, I followed the following links: first, second, third and many others.
The part where I get stuck in is when I suppose to add the fields, I don't know where to get the Ids added in the DataSource facets like in the "Details" tab in below photo:
am I suppose to add my custom facets to core database and take the Ids of them and if so how can I connect them with my JSON file and the xDB field.
or am doing it wrong. I don't know I got pretty lost in this part can you please advice me.