Product DocsMenu

Salesforce Mapping File Example for Chatter Objects

Chatter feed items appear in various Salesforce objects. You can make the content of Chatter feed searchable. Once the Chatter objects are available (see Salesforce ObjectsToGet Configuration File Example for Chatter Objects), you must include appropriate mappings for these Chatter objects and fields.

The following Chatter mapping file example is a good starting point.

CES 7.0.7104+ (October 2014)

<?xml version="1.0" encoding="UTF-8"?>
<Mappings>
    <Version>1</Version>
    <Mapping type="FeedItem">
        <Title>%[Title]</Title>
        <Body>%[LinkUrl] %[Body]</Body>
        <Fields>
            <Field name="sysfiletype">FeedItem</Field>
        </Fields>
    </Mapping>
    <Mapping type="FeedComment">
        <Title>Comment by %[CreatedBy.Name]</Title>
        <Body>%[CommentBody]</Body>
        <Fields>
            <Field name="sysfiletype">FeedComment</Field>
        </Fields>
    </Mapping>
    <Mapping type="ContentVersion">
        <Title>%[Title]</Title>
        <Fields>
            <Field name="sysfiletype">ContentVersion</Field>
        </Fields>
    </Mapping>
</Mappings>  

CES 7.0.7022– (September 2014)

<?xml version="1.0" encoding="utf-8"?>
<Salesforce>
  <Mapping type="FeedItem">
    <Fields>
      <Title>%[Title]</Title>
      <Body>%[LinkUrl] %[Body]</Body>
      <CustomFields>
        <CustomField name="sysfiletype">FeedItem</CustomField>
      </CustomFields>
    </Fields>
  </Mapping>
  <Mapping type="FeedComment">
    <Fields>
      <Title>Comment by %[CreatedBy.Name]</Title>
      <Body>%[CommentBody]</Body>
      <CustomFields>
        <CustomField name="sysfiletype">FeedComment</CustomField>
      </CustomFields>
    </Fields>
  </Mapping>
  <Mapping type="ContentVersion">
    <Fields>
      <Title>%[Title]</Title>
      <CustomFields>
        <CustomField name="sysfiletype">
        ContentVersion</CustomField>
      </CustomFields>
    </Fields>
  </Mapping>
</Salesforce>  

Note: CES 7.0.7183+ (November 2014) FeedComment can have access to information on the FeedItem:

  1. In your ObjectToGet configuration file, add all needed FeedItem fields [i.e. NetworkScope(<string>NetworkScope</string>] on a FeedComment (see FeedItem Fields).

  2. In your Salesforce mapping file, add all needed mappings on the FeedComment with a FeedItem.[Field] relationship [i.e. <Field name="SFFeedItemNetworkScope">%[FeedItem.NetworkScope]</Field>] (see FeedItem Fields).

  3. Add the custom field(s) in your Salesforce field set [i.e. SFFeedItemNetworkScope] (see Adding or Modifying Custom Fields) .

  4. On the Coveo server, access the Administration Tool (see Opening the Administration Tool) .

  5. Rebuild the Salesforce source (see Applying an Action to a Collection or a Source) .

In a search interface, all needed FeedItem information appear on a FeedComment record.

People who viewed this topic also viewed