Skip to content

Commit 5273649

Browse files
committed
fix(salesforce): revert ArticleBody — not a standard KnowledgeArticleVersion field
ArticleBody is not a standard field on KnowledgeArticleVersion per Salesforce API docs. Article body content lives in custom fields on org-specific __kav objects. Including ArticleBody in the SOQL query would cause runtime errors.
1 parent 839c00a commit 5273649

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

apps/sim/connectors/salesforce/salesforce.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ const PAGE_SIZE = 200
1212

1313
/** SOQL field lists per object type. */
1414
const OBJECT_FIELDS: Record<string, string[]> = {
15-
KnowledgeArticleVersion: [
16-
'Id',
17-
'Title',
18-
'Summary',
19-
'ArticleBody',
20-
'LastModifiedDate',
21-
'ArticleNumber',
22-
],
15+
KnowledgeArticleVersion: ['Id', 'Title', 'Summary', 'LastModifiedDate', 'ArticleNumber'],
2316
Case: ['Id', 'Subject', 'Description', 'Status', 'LastModifiedDate', 'CaseNumber'],
2417
Account: ['Id', 'Name', 'Description', 'Industry', 'LastModifiedDate'],
2518
Opportunity: [
@@ -99,7 +92,7 @@ function buildRecordTitle(objectType: string, record: Record<string, unknown>):
9992
}
10093

10194
/** Fields that may contain HTML content and should be stripped to plain text. */
102-
const HTML_FIELDS = new Set(['Description', 'Summary', 'ArticleBody'])
95+
const HTML_FIELDS = new Set(['Description', 'Summary'])
10396

10497
/**
10598
* Builds plain-text content from a Salesforce record for indexing.

0 commit comments

Comments
 (0)