--- title: AugmentedResultList component slug: '3425' canonical_url: https://docs.coveo.com/en/3425/ collection: coveo-for-salesforce source_format: adoc --- # AugmentedResultList component The `AugmentedResultList` component extends the [`ResultList`](https://coveo.github.io/search-ui/components/resultlist.html) component to allow you to invoke a function to augment the `raw` field of result list items before rendering them. ## Options In addition to the options provided by the `ResultList` component, the `AugmentedResultList` component also provides the options listed in this section: ### `matchingIdField` The `@`-prefixed field to use to filter `fetchAugmentData` output. Products without this field are ignored. Typically, you will choose the field you use in [`matchingFunction`](#matchingfunction), when you define that function explicitly. Type: [`IFieldOption`](https://coveo.github.io/search-ui/interfaces/ifieldoption.html) Default value is `@sfid`, meaning that the component only uses `fetchAugmentData` output results that have an `sfid` to augment result list items. ### `fetchAugmentData` The function to use to fetch extra result information. Type: `+(objectIds: String[]) => Promise>+` Where: * `IPromiseReturnArgs` has the following type: `{data: T}` * `IAugmentData` has the following type: ``` { // Item specific data. resultData: {}[]; // Data common to all target items. commonData: {}; } ``` You will typically set this option dynamically. By default, the function is undefined and has no impact. In that case, the `AugmentedResultList` component behaves as the `ResultList` one. ### `matchingFunction` The function to use to match `fetchAugmentData` output (filtered by [`matchingIdField`](#matchingidfield)) with result list items. Type: `+(augmentData: any, queryResult: IQueryResult) => boolean+` See [`IQueryResult`](https://coveo.github.io/search-ui/interfaces/iqueryresult.html). By default, the function returns `true` for pairs of items whose `sfid` values match: ```typescript (augmentData: any, queryResult: IQueryResult) => { return augmentData['sfid'] === queryResult.raw['sfid']; } ``` ## Methods Same methods as the [`ResultList`](https://coveo.github.io/search-ui/components/resultlist.html) component.