Business Card
Overview
- Renders each person as a horizontal business card using the SharePoint Gallery layout
- A colored accent bar and an initials avatar give each card a branded feel
- The name, title, and company sit together, with email and phone beneath
- Email is a one-click mailto link for fast contact
- Applied as gallery view formatting JSON, so the whole list switches to cards without changing the underlying data
- Works on any contact list, and the accent color keys to the department
Common Use Cases
- Team or department contact list
- Vendor or partner contacts
- Sales or account team roster
- Speaker or presenter list
- Committee or board members
- Client directory
Required Columns
| Display name | Column type | Internal name |
|---|---|---|
| Title | Single line of text | [Title] |
| Job Title | Single line of text | [JobTitle] |
| Company | Single line of text | [Company] |
| Single line of text | [Email] | |
| Phone | Single line of text | [Phone] |
| Department | Choice | [Department] |
Prerequisites
- Build a list with these columns before you paste the JSON.
- Populate the list with data.
- Internal column names (in brackets) must match the JSON exactly.
How to Apply JSON code
- Create a Gallery view on the list (view dropdown at the top right, Create new view, set the layout to Gallery, then Create).
- With the new gallery view open, open the view dropdown again and choose Format current view.
- Switch to Advanced mode, paste the JSON below, and click Save.
JSON Code
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/tile-formatting.schema.json",
"height": 130,
"width": 340,
"hideSelection": true,
"formatter": {
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "row",
"box-sizing": "border-box",
"height": "100%",
"border": "1px solid #d0d7de",
"border-radius": "10px",
"background-color": "#ffffff",
"overflow": "hidden",
"box-shadow": "0 2px 7px rgba(0,0,0,0.055)"
},
"children": [
{
"elmType": "div",
"style": {
"width": "8px",
"flex-shrink": "0",
"background-color": "=if([$Department] == 'Engineering', '#0078d4', if([$Department] == 'Marketing', '#8764b8', if([$Department] == 'Operations', '#107c10', if([$Department] == 'Finance', '#ca5010', if([$Department] == 'Sales', '#e3008c', '#605e5c')))))"
}
},
{
"elmType": "div",
"style": {
"display": "flex",
"align-items": "center",
"padding": "14px"
},
"children": [
{
"elmType": "div",
"style": {
"width": "52px",
"height": "52px",
"border-radius": "50%",
"display": "flex",
"align-items": "center",
"justify-content": "center",
"color": "#ffffff",
"font-size": "18px",
"font-weight": "700",
"flex-shrink": "0",
"margin-right": "14px",
"background-color": "=if([$Department] == 'Engineering', '#0078d4', if([$Department] == 'Marketing', '#8764b8', if([$Department] == 'Operations', '#107c10', if([$Department] == 'Finance', '#ca5010', if([$Department] == 'Sales', '#e3008c', '#605e5c')))))"
},
"txtContent": "=substring([$Title], 0, 1) + substring([$Title], indexOf([$Title], ' ') + 1, indexOf([$Title], ' ') + 2)"
},
{
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "column",
"justify-content": "center",
"min-width": "0"
},
"children": [
{
"elmType": "div",
"style": {
"font-size": "16px",
"font-weight": "700",
"color": "#111827",
"margin-bottom": "3px",
"white-space": "nowrap",
"overflow": "hidden",
"text-overflow": "ellipsis"
},
"txtContent": "[$Title]"
},
{
"elmType": "div",
"style": {
"font-size": "13px",
"font-weight": "600",
"color": "#111827",
"line-height": "18px",
"margin-bottom": "7px",
"white-space": "nowrap",
"overflow": "hidden",
"text-overflow": "ellipsis"
},
"txtContent": "=[$JobTitle] + ' - ' + [$Company]"
},
{
"elmType": "a",
"attributes": {
"href": "='mailto:' + [$Email]"
},
"style": {
"font-size": "12px",
"color": "#005a9e",
"text-decoration": "none",
"margin-bottom": "3px",
"white-space": "nowrap",
"overflow": "hidden",
"text-overflow": "ellipsis"
},
"txtContent": "[$Email]"
},
{
"elmType": "div",
"style": {
"font-size": "12px",
"color": "#111827",
"font-weight": "500"
},
"txtContent": "[$Phone]"
}
]
}
]
}
]
}
}
Common Questions About the Business Card
What is the Business Card built with?
It is built with a standard Microsoft List (SharePoint list) and gallery view formatting expressed in JSON. There is no custom development, no SPFx solution, and no third-party tools. It is the kind of clean, maintainable formatting Greg Zelfond builds for teams that want a contact directory without ongoing development overhead.
What columns does it need?
It uses six columns: a Title for the name, a JobTitle, a Company, an Email, a Phone, and a Department that sets the accent color. The card refers to each by its internal name, so the JSON and the columns must line up exactly.
Does the email link work?
Yes. The email is a one-click mailto link, so selecting it opens a new message to that address in the person’s default mail app. The phone shows as text beneath it for quick reference.
Does this design use any custom development or third-party tools?
No. It uses only out-of-the-box SharePoint view formatting, which Microsoft supports natively. That keeps it stable and easy to maintain, and nothing breaks when SharePoint is updated. Out-of-the-box is the only way Greg builds, so you can own and extend the design yourself for years.
If LookBook 365 is code-free and out-of-the-box, why does this example include JSON?
Because SharePoint formatting JSON is not custom code – it is a native configuration feature built into lists and libraries. It is declarative: it only describes how existing columns and views look, and cannot run scripts, reach external services, or change your data. Nothing is deployed and nothing breaks when Microsoft updates SharePoint, and you can edit or remove it anytime. That is why LookBook 365 treats it as out-of-the-box and low risk.
Can Greg build this for our team?
Yes – this is exactly the kind of work Greg Zelfond does. As an independent SharePoint consultant and Microsoft MVP, he designs out-of-the-box list and library formatting like this so your team can read and maintain it without a developer. Reach out through the contact page to talk about your lists.
