Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The context parameter of the JS plugin function contains a customerSearchResults property. It is an instance of Enreach.API.customerSearchResults class, which has the following methods:

dataRows property

An array of objects found by multiple matches feature. Each item within the array has the following properties:

  • id: GUID of the entity

  • name: display name

  • type: entity logical name

  • fieldValues: additional fields displayed in the grid

By iterating the array of search results, additional information can be retrieved for each one by using CIF CRUD APIs.

setColumnHeaders(columnHeaders) function

Manipulates the column headers of the grid. Only Address and City columns ca be overridden. Default columns are removed when the method is called.

...

setRowData(id, name, fieldValues) function

Updates the values of a particular item.

...

var contact = await Microsoft.CIFramework.retrieveRecord("contact", id, "?$select=fullname,telephone1");

The custom plugin then has to be inserted right before the grid is rendered by Display Customer search results OoB plugin on Incoming call answered event.

...