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:
- Setup > Knowledge Settings > Enable Lightning Knowledge (this is a one-way switch; verify before enabling in production).
- Assign the Knowledge User permission to authors.
- Create record types (FAQ, How-To, Troubleshooting) with their own layouts and picklists.
- Define Data Categories to organize and control visibility.
- Authors create drafts, submit for approval, publish to channels (Internal App, Customer, Partner, Public Knowledge Base).
- 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:
SELECT Id, Title, UrlName, Summary
FROM Knowledge__kav
WHERE PublishStatus =
IsLatestVersion
DATA CATEGORY Product__c ABOVE_OR_BELOW Hardware__c