Good afternoon. Tell me how to add fields to the calendar. Namely, for a meeting, display the name and phone number of the contact, as well as the name of the counterparty.
Changed the calendar.js, added a field name to it account. The console displays undefined.
convertToFcEvent: function (o) {
console.log(o);
console.log(o.parent1);
var event = {
title: o.name,
scope: o.scope,
id: o.scope + '-' + o.id,
recordId: o.id,
dateStart: o.dateStart,
dateEnd: o.dateEnd,
dateStartDate: o.dateStartDate,
dateEndDate: o.dateEndDate,
status: o.status,
originalColor: o.color,
};
Changed the calendar.js, added a field name to it account. The console displays undefined.
convertToFcEvent: function (o) {
console.log(o);
console.log(o.parent1);
var event = {
title: o.name,
scope: o.scope,
id: o.scope + '-' + o.id,
recordId: o.id,
dateStart: o.dateStart,
dateEnd: o.dateEnd,
dateStartDate: o.dateStartDate,
dateEndDate: o.dateEndDate,
status: o.status,
originalColor: o.color,
};