# How does Lightning Knowledge object architecture differ from legacy article types?

**Topic:** Service Cloud · **Difficulty:** Medium · **Tags:** Service Cloud, Lightning Knowledge, Object Architecture

Read it on the site: https://www.forcechallenges.com/interview-questions/how-does-lightning-knowledge-object-architecture-differ-from-legacy-article-types

## Answer

**Basics:** Classic Knowledge had Article Types, each with its own fields and layout. Lightning Knowledge uses one article object, with record types, page layouts and fields. It plugs into Flow, triggers, record pages and standard reporting like any other object.

**How it works:**
1. Setup > Knowledge Settings > Enable Lightning Knowledge (this is a one-way switch; verify before enabling in production).
2. Assign the Knowledge User permission to authors.
3. Create record types (FAQ, How-To, Troubleshooting) with their own layouts and picklists.
4. Define Data Categories to organize and control visibility.
5. Authors create drafts, submit for approval, publish to channels (Internal App, Customer, Partner, Public Knowledge Base).
6. Agents use the Knowledge component in the console to search and attach articles to cases.

**Advanced / deep dive:** Data model: Knowledge__kav is the version object (with KnowledgeArticleId linking versions), Knowledge__ka the article header; versions have PublishStatus (Draft, Online, Archived) and language. SOQL on versions must filter on PublishStatus (and Language when multilingual is on). Triggers and Flow on Knowledge__kav are supported; the KbManagement.PublishingService class manages publishing. Security: visibility is governed by data categories, channels and object permissions. Migration from Classic uses the Migration tool; plan for URL changes and record type mapping. Multilingual and translation workflows are supported.

**Code / config example:**
```sql
SELECT Id, Title, UrlName, Summary
FROM Knowledge__kav
WHERE PublishStatus = 'Online' AND Language = 'en_US'
  AND IsLatestVersion = true
WITH DATA CATEGORY Product__c ABOVE_OR_BELOW Hardware__c
```
```apex
// Publish a draft as a new major version
KbManagement.PublishingService.publishArticle(knowledgeArticleId, true);
```

**Hidden gotchas & must-remember points:**
- Enabling Lightning Knowledge is irreversible.
- The object API name is usually Knowledge__kav, but check your org.
- SOQL on article versions needs PublishStatus in the WHERE clause.
- Authors need the Knowledge User feature license/checkbox.
- Data category visibility can hide articles from users unexpectedly.
- Classic article types cannot run alongside Lightning Knowledge.

**Best practice:** Design record types and data categories before migration, and give each article an owner and review date.

---
Source: ForceChallenges · last updated 2026-11-02
