Doc produitsMenu

Exemple de fichier de correspondances Salesforce pour Knowledge Base

Lorsque votre organisation Salesforce contient des articles de Knowledge Base et vous souhaitez indexer leur contenu, vous devez inclure des correspondances supplémentaires pour les types de contenu Knowledge.

L'exemple de fichier de correspondances qui est présenté dans cette rubrique lie deux objets Knowledge Base arbitrairement nommés :

  • MyKBArticleType1

  • MyKBArticleType2

<?xml version="1.0" encoding="UTF-8" ?>
<Salesforce>
  <CommonMapping>
    <Fields>
      <ContentType>binarydata</ContentType>
      <ModifiedDate>%[LastModifiedDate]</ModifiedDate>
      <CustomFields>
        <CustomField name="sourcetype">Salesforce</CustomField>
        <CustomField name="SfChannelsFlagMerged">Internal App:%[kav_IsVisibleInApp];Customer Portal:%[kav_IsVisibleInCsp];Public Knowledge Base:%[kav_IsVisibleInPkb];Partner Portal:%[kav_IsVisibleInPrm];</CustomField>
        <CustomField name="SfOrganizationId">%[coveo_organization_id]</CustomField>
        <CustomField name="sysauthor">%[kav_CreatedBy.Name]</CustomField>
        <CustomField name="sysdate">%[kav_LastPublishedDate]</CustomField>
        <CustomField name="sysSfId">%[ka_id]</CustomField>
        <CustomField name="SfId">%[ka_id]</CustomField>
        <CustomField name="SfKbId">%[ka_id]</CustomField>
        <CustomField name="KbId">%[ka_id]</CustomField>
        <CustomField name="SfCreatedDate">%[kav_LastPublishedDate]</CustomField>
        <CustomField name="SfCreatedBy">%[ka_CreatedBy.Name]</CustomField>
        <CustomField name="SfCreatedById">%[ka_CreatedBy.Id]</CustomField>
        <CustomField name="SfIsDeleted">%[kav_IsDeleted]</CustomField>
        <CustomField name="SfParticipantId">%[ka_CreatedBy.Id];%[kav_LastModifiedBy.Id];</CustomField>
        <CustomField name="SfParticipantName">%[CreatedBy.Name];%[kav_LastModifiedBy.Name];</CustomField>
      </CustomFields>
    </Fields>
  </CommonMapping>
  <Mapping type="MyKBArticleType1">
    <Fields>
      <Title>%[kav_Title]</Title>
      <Body>%[kav_Summary]</Body>
      <CustomFields>
        <CustomField name="objecttype">MyKBArticleType1</CustomField>
        <CustomField name="objecttypename">My KB Article Type1</CustomField>
        <CustomField name="sfinterfaceid">kb</CustomField>
        <CustomField name="SfCaseId">%[ka_CaseArticles.CaseId]</CustomField>
        <CustomField name="SfCreatedByName">%[kav_CreatedBy.Name]</CustomField>
        <CustomField name="SfKbArchivedDate">%[ka_ArchivedDate]</CustomField>
        <CustomField name="SfKbArchivedDatefq">%[ka_ArchivedDate_fiscalquarter]</CustomField>
        <CustomField name="SfKbArchivedDatefy">%[ka_ArchivedDate_fiscalyear]</CustomField>
        <CustomField name="SfKbArticleNumber">%[kav_ArticleNumber]</CustomField>
        <CustomField name="SfKbCaseAssociationCount">%[ka_CaseAssociationCount]</CustomField>
        <CustomField name="SfKbFirstPublishedDate">%[kav_FirstPublishedDate]</CustomField>
        <CustomField name="SfKbFirstPublishedDatefq">%[kav_FirstPublishedDate_fiscalquarter]</CustomField>
        <CustomField name="SfKbFirstPublishedDatefy">%[kav_FirstPublishedDate_fiscalyear]</CustomField>
        <CustomField name="SfKbIsLatestVersion">%[kav_IsLatestVersion]</CustomField>
        <CustomField name="SfKbIsVisibleInApp">%[kav_IsVisibleInApp]</CustomField>
        <CustomField name="SfKbIsVisibleInCsp">%[kav_IsVisibleInCsp]</CustomField>
        <CustomField name="SfKbIsVisibleInPkb">%[kav_IsVisibleInPkb]</CustomField>
        <CustomField name="SfKbIsVisibleInPrm">%[kav_IsVisibleInPrm]</CustomField>
        <CustomField name="SfKbLastPublishedDate">%[kav_LastPublishedDate]</CustomField>
        <CustomField name="SfKbLastPublishedDatefq">%[kav_LastPublishedDate_fiscalquarter]</CustomField>
        <CustomField name="SfKbLastPublishedDatefy">%[kav_LastPublishedDate_fiscalyear]</CustomField>
        <CustomField name="SfKbPublishStatus">%[kav_PublishStatus]</CustomField>
        <CustomField name="SfKbSummary">%[kav_Summary]</CustomField>
        <CustomField name="SfKbTitle">%[kav_Title]</CustomField>
        <CustomField name="SfKbUndecipherableContentC">%[kav_Undecipherable_Content__c]</CustomField>
        <CustomField name="SfKbUrlName">%[kav_UrlName]</CustomField>
        <CustomField name="SfKbVersionNumber">%[kav_VersionNumber]</CustomField>
        <CustomField name="SfLanguage">%[kav_Language]</CustomField>
        <CustomField name="SfLastModifiedById">%[kav_LastModifiedBy.Id]</CustomField>
        <CustomField name="SfLastModifiedByName">%[kav_LastModifiedBy.Name]</CustomField>
        <CustomField name="SfLastModifiedDate">%[kav_LastModifiedDate]</CustomField>
        <CustomField name="SfLastModifiedDatefq">%[kav_LastModifiedDate_fiscalquarter]</CustomField>
        <CustomField name="SfLastModifiedDatefy">%[kav_LastModifiedDate_fiscalyear]</CustomField>
        <CustomField name="SfSystemModstamp">%[kav_SystemModstamp]</CustomField>
        <CustomField name="SfSystemModstampfq">%[kav_SystemModstamp_fiscalquarter]</CustomField>
        <CustomField name="SfSystemModstampfy">%[kav_SystemModstamp_fiscalyear]</CustomField>
        <CustomField name="sysfiletype">SalesforceItem</CustomField>
      </CustomFields>
    </Fields>
  </Mapping>
  <Mapping type="MyKBArticleType2">
    <Fields>
      <Title>%[kav_Title]</Title>
      <Body>%[kav_Summary]</Body>
      <CustomFields>
        <CustomField name="objecttype">MyKBArticleType2</CustomField>
        <CustomField name="objecttypename">My KB Article Type2</CustomField>
        <CustomField name="sfinterfaceid">kb</CustomField>
        <CustomField name="SfCaseId">%[ka_CaseArticles.CaseId]</CustomField>
        <CustomField name="SfCreatedByName">%[kav_CreatedBy.Name]</CustomField>
        <CustomField name="SfKbArchivedDate">%[ka_ArchivedDate]</CustomField>
        <CustomField name="SfKbArchivedDatefq">%[ka_ArchivedDate_fiscalquarter]</CustomField>
        <CustomField name="SfKbArchivedDatefy">%[ka_ArchivedDate_fiscalyear]</CustomField>
        <CustomField name="SfKbArticleNumber">%[kav_ArticleNumber]</CustomField>
        <CustomField name="SfKbCaseAssociationCount">%[ka_CaseAssociationCount]</CustomField>
        <CustomField name="SfKbFirstPublishedDate">%[kav_FirstPublishedDate]</CustomField>
        <CustomField name="SfKbFirstPublishedDatefq">%[kav_FirstPublishedDate_fiscalquarter]</CustomField>
        <CustomField name="SfKbFirstPublishedDatefy">%[kav_FirstPublishedDate_fiscalyear]</CustomField>
        <CustomField name="SfKbIsLatestVersion">%[kav_IsLatestVersion]</CustomField>
        <CustomField name="SfKbIsVisibleInApp">%[kav_IsVisibleInApp]</CustomField>
        <CustomField name="SfKbIsVisibleInCsp">%[kav_IsVisibleInCsp]</CustomField>
        <CustomField name="SfKbIsVisibleInPkb">%[kav_IsVisibleInPkb]</CustomField>
        <CustomField name="SfKbIsVisibleInPrm">%[kav_IsVisibleInPrm]</CustomField>
        <CustomField name="SfKbLastPublishedDate">%[kav_LastPublishedDate]</CustomField>
        <CustomField name="SfKbLastPublishedDatefq">%[kav_LastPublishedDate_fiscalquarter]</CustomField>
        <CustomField name="SfKbLastPublishedDatefy">%[kav_LastPublishedDate_fiscalyear]</CustomField>
        <CustomField name="SfKbPublishStatus">%[kav_PublishStatus]</CustomField>
        <CustomField name="SfKbRecipeC">%[kav_Recipe__c]</CustomField>
        <CustomField name="SfKbSummary">%[kav_Summary]</CustomField>
        <CustomField name="SfKbTitle">%[kav_Title]</CustomField>
        <CustomField name="SfKbUrlName">%[kav_UrlName]</CustomField>
        <CustomField name="SfKbVersionNumber">%[kav_VersionNumber]</CustomField>
        <CustomField name="SfLanguage">%[kav_Language]</CustomField>
        <CustomField name="SfLastModifiedById">%[kav_LastModifiedBy.Id]</CustomField>
        <CustomField name="SfLastModifiedByName">%[kav_LastModifiedBy.Name]</CustomField>
        <CustomField name="SfLastModifiedDate">%[kav_LastModifiedDate]</CustomField>
        <CustomField name="SfLastModifiedDatefq">%[kav_LastModifiedDate_fiscalquarter]</CustomField>
        <CustomField name="SfLastModifiedDatefy">%[kav_LastModifiedDate_fiscalyear]</CustomField>
        <CustomField name="SfSystemModstamp">%[kav_SystemModstamp]</CustomField>
        <CustomField name="SfSystemModstampfq">%[kav_SystemModstamp_fiscalquarter]</CustomField>
        <CustomField name="SfSystemModstampfy">%[kav_SystemModstamp_fiscalyear]</CustomField>
        <CustomField name="sysfiletype">SalesforceItem</CustomField>
      </CustomFields>
    </Fields>
  </Mapping>
</Salesforce>