Writing work table data in a Temp Table
Hi -
I have created a Temp table via JS in my workflow and want to insert data from the working table in that temp table, is it possible?
If yes can you help me with JS for it?
Regards,
Tushar Varshney
Hi -
I have created a Temp table via JS in my workflow and want to insert data from the working table in that temp table, is it possible?
If yes can you help me with JS for it?
Regards,
Tushar Varshney
Hi,
You may fetch temp schema like this:
var schemaName = vars.targetSchema.substr(vars.targetSchema.indexOf(":") + 1);
logInfo(schemaName);
var query = xtk.queryDef.create(
<queryDef schema = {vars.targetSchema} operation = "select">
<select>
<node expr = "@firstName"/>
<node expr = "@lastName"/>
<node expr = "@email"/>
<node expr = "@id"/>
</select>
</queryDef>);
If you are sure in this above, you may try this for writing:
var some_variable = <vars.targetSchema.split(':')[1]
xtkschema = vars.targetSchema
_key="@id"
_operation="Update"
lastName = {record.lastName }
firstName={record.firstName}
email = {record.email }
/>;
xtk.session.Write(some_variable);
Thanks,
David
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.