I am using getTotalRecordCount to determine when a cloud flow returns records to the subgrids table
I have been stepping through the functions code and noticed a 0 in the JS provided by Microsoft.
getTotalRecordCount() {
const t = "ClientApi.XrmControlGrid.getTotalRecordCount";
try {
p.a.instance.reportCall(t);
const e = Object(a.lb)(f.getState(), this._pageId, this._contextToken);
if (e) {
const n = JSON.parse(e)
, a = n && n.totalResultCount ? n.totalResultCount : 0;
return p.a.instance.reportSuccess(t),
a
}
return p.a.instance.reportSuccess(t),0
} catch (e) {
const n = d.a.getInstance().getEventParameters(this.contextToken);
throw n.push({
name: "controlName",
value: this.controlName
}),
d.a.getInstance().reportFailure(t, e, null, n),
e
}
}

Report
All responses (
Answers (