...
The number of columns given to setColumnHeaders and length of fieldValues array have to be identical.
Within the plugin all the features of CIF API can be used, e.g. to retrieve any record and supply the retrieved data to setRowData function.
CIF API reference:
Remember to call CIF APIs by using await, so e.g to retrieve a record, call
var contact = await Microsoft.CIFramework.retrieveRecord("contact", id, "?$select=fullname,telephone1");