Hi DP,
In line,
Var query = "with CTe as (" +
the 'v' in Var should be small. So it should be
var query = "with CTe as (" +
This should solve ";" missing error. Other than that I can see few scripting errors. Consider reviewing fully once. Thanks.
Kind regards,
Jai
Message was edited by: Jai Suryan