Hi Darkhan,
Greetings from Syncfuison support.
Based on your requirement we have prepared the below sample with help of actionBegin event like below code and the same made in the below sample.
onActionBegin(args) {
if (args.requestType === 'eventCreate') {
let data;
let eventData = args.data[0];
let eventField = this.scheduleObj.eventFields;
let userId = 3;
let subject = eventData[eventField.subject];
let startDate = eventData[eventField.startTime];
let endDate = eventData[eventField.endTime];
let roomId = eventData[this.scheduleObj.resourceCollection[0].field];
let newData = {
userId,
subject,
startDate,
endDate,
roomId
}
console.log(newData);
}
}
Kindly try the above sample and get back to us If you would require any further assistance.
Regards,
Ravikumar Venkatesan