Cory Weiner
11/08/2021, 8:39 PMconst map = (mapContext) => {
rec = JSON.parse(mapContext.value)
if (rec.externalid){
log.debug("Creating new record", rec.externalid)
let task = record.create({type:record.Type.PROJECT_TASK})
log.debug("Before set values")
setValues(task,rec)
log.debug("Before task save")
let new_task_id = task.save({enableSourcing:true, ignoreMandatoryFields: false});
log.debug("Created task", new_task_id)
}
}
However, I don’t see any errors in the execution log of the deployement… the final debug line is simple missing:battk
11/08/2021, 8:40 PMCory Weiner
11/08/2021, 8:56 PMbattk
11/08/2021, 8:58 PMCory Weiner
11/08/2021, 8:59 PM