Hi
Trying to copy field from a booking (parent) to a new record sub booking (child) .
Reason why I need it is to make bookings quicker if it is only on subbooking in the booking.
However do not get it to work, even if I copy only one field:
function copyEntry(nodeId) {
db.entryCopier(JSON.stringify({
THIS_PATH:"/booking/2",
THIS_NODEID:nodeId,
NEW_PATH:"/booking/4",
COPY:{
1000395:1000392
/** 1000278:1000350,
1000281:1000386,
1000285:1000388,
1000286:1000389,
1000677:1000374,
1000683:1000397,
1000684:1000398,
1000679:1000375,
1000680:1000401,
1000686:1000376,
1000688:1000377,
1000698:1000430,
1000699:1000431,
1000700:1000434,
1000678:1000403,
1000689:1000404,
1000690:1000405,
1000691:1000406,
1000692:1000407,
1000694:1000412,
1000701:1000432,
1000702:1000433,
1000703:1000433,
1000704:1000414,
1000705:1000415,
1000706:1000416,
1000707:1000417,
1000708:1000418,
1000709:1000419,
1000710:1000420,
1000712:1000428,
1000713:1000422,
1000714:1000423 */
}
}),response);
}
Get following error:
Any ideas what is wrong? The fields are correct and the paths are correct