1

End user does not see any error on UI whenever any CIF method like retrieveRecord fails to fulfil. See an empty object("{"value”:{}}”). in error object. This inhibits ability to fix it.

function (error) {

console.log(error);

Reference - retrieveRecord (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 1.0 | Microsoft Learn

// retrieve contact record

var id = "b44d31ac-5fd1-e811-8158-000d3af97055";

var entityLogicalName = "contact";

Microsoft.CIFramework.retrieveRecord(entityLogicalName, id, "?$select=fullname,telephone1").then(

  function success(result) {

   res=JSON.parse(result);

    console.log(`Retrieved values: Full Name: ${res.fullname}, Telephone Number: ${res.telephone1}`);

    // perform operations on record retrieval

  },

  function (error) {

    console.log(error.message);

    // handle error conditions

  }

);

STATUS DETAILS
Under Review