Files
cloud-cap-samples/bookshop/handlers/AdminService.Authors.CREATE.js
2022-07-26 09:45:34 +02:00

14 lines
388 B
JavaScript

async function run() {
//debugger
//while (true) {}
//process.exit()
//1.substring()
let res = await cds.read(SELECT.one`title`.from(`Books`).where(`ID=201`))
let { title } = res
const data = req.data
data.modifiedBy = "Custom Event handler read changed this!"
data.placeOfDeath = " --- Somewhere over " + title + " --- create in Sandbox"
return data
}
output = run()