This question is locked. New answers and comments are not allowed.
Hi,
I'm newbie on cloud code of Telerik.
In User table afterCreate function, I want to query all data in a data table as written below. This simple code logs only line 7,16 and 17 (console.log(...)). The get function doesn't work. What's wrong with? There are only 16 record in 'Kategori' table.
01.
Everlive.Events.afterCreate(
function
(request, response, context, done) {
02.
03.
if
(!response.error){
04.
05.
var
user = response.result.Id;
06.
07.
console.log(user);
08.
09.
var
data = Everlive.Sdk.withMasterKey().data(
"KategoriSoruTablolari"
);
10.
data.get(
null
,
function
(datam) {
11.
console.log(1);
12.
},
function
(err) {
13.
console.log(2);
14.
});
15.
16.
console.log(3);
17.
console.log(4);
18.
19.
}
20.
done();
21.
});