Versions Compared

Key

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

...

Code Block
languagejs
var SampleCustomer = SampleCustomer || {};
SampleCustomer.Plugins = SampleCustomer.Plugins || {};

SampleCustomer.Plugins.manipulateSearchResultstest = async function(context) {
   
debugger;
    contextconsole.customerSearchResults.setColumnHeaderslog(["foo", "bar"]);
    context.customerSearchResults.setRowData("b41a1595-e321-ec11-b6e6-6045bd8a1d39", "foo", ["bar", "qwe"]"[voice] foo");
};

One plugin code file can contain any number of plugins. The entry point of a plugin is a JS function, like SampleCustomer.Plugins.manipulateSearchResultstestin the example above.

The entry point of the plugin must always be asynchronous (decorated with async statement or returning a promise object).

...