Sub topic 6
Bringing Knowledge content into Data Cloud
This chapter assumes you can publish Knowledge articles, know what a data stream is, and have Data Cloud provisioned with the Salesforce CRM connector enabled. Chunking, embeddings, and the search index come in later chapters.
What ingestion does
Data Cloud cannot search your articles while they exist only in Salesforce Knowledge. You first copy them in with a data stream. A data stream is a connection that pulls records from a source into a data lake object (DLO), which is raw storage in Data Cloud. You then map the DLO fields to a data model object (DMO), which is the standardized structure that the search index reads.
Check the source first
Only articles that are published, in the right language, and visible to the connector can be ingested. Before you build anything, confirm what should arrive. Run this query in the Developer Console or Workbench.
SELECT Id, Title, UrlName, PublishStatus, Language, LastPublishedDate
FROM Knowledge__kav
WHERE PublishStatus = 'Online'
AND Language = 'en_US'
ORDER BY LastPublishedDate DESC
LIMIT 20If an article is missing here, it will not reach Data Cloud, and no later setting can fix that.
Create the data stream
- In Data Cloud, open Data Streams and choose New.
- Select the Salesforce CRM connector and the connection to your org.
- Select the Knowledge article version object (
Knowledge__kav) as the source object. - Choose the fields to bring in. Include the title, the body fields that hold the article text, the URL name, the language, and the publish status. Fields you skip are not available later as returned fields or filters.
- Set the category and refresh mode, then deploy.
After deployment, check that the DLO has rows. Then confirm the mapping to the DMO. Unmapped fields cannot be indexed.
Keep it fresh
A CRM data stream refreshes on a schedule, not instantly. A newly published or archived article reaches the index only after the next stream refresh and then an index update. Check the refresh frequency in your org so you can tell users how long a change takes to appear.
Common errors
| Symptom | Likely cause |
|---|---|
| DLO is empty | Wrong source object, or the connector user cannot see the articles |
| Article text missing from search | The body field was not selected or not mapped |
| Wrong-language results | Language field not ingested, so it cannot be filtered |
| Old content still appears | Stream or index has not refreshed since the change |
Exercise
A support article was published an hour ago, and a SOQL query on Knowledge__kav returns it. The agent still cannot find it. Name two places in the Data Cloud path to check.
Show answer
First, check whether the CRM data stream has refreshed since the publish, and whether the new row is in the DLO. Second, check that the body and language fields are mapped to the DMO. If both are fine, check whether the search index has updated since the stream refresh.