Hi team,
I am using a function to extract name from Database output stored in variable named “pk_tableOutput”
Please find the function code below:
return new Promise(resolve => {
let dbResponse = data.variables.pk_tableOutput;
ymLib.logger.log(dbResponse,"Sample-DB-Search");
let user_name = dbResponse.records[0].fullname;
ymLib.logger.log(user_name,"Sample-name");
resolve(user_name);
});
When I check back into the logs “data” : “records” is not coming.
Please help me.