When using the script below in an empty request:
boomerang.setEnvironmentVariable('brt_id', item.TemplateId);
var request = boomerang.getRequest('"QueryEngine".GetTemplateResultAsDataSet."PQ - Get Dimensie"');
console.log(request);
boomerang.clearEnvironmentVariable('brt_id');
The variable {{brt_id}} never gets replaced by the item.TemplateId in the "PW - Get Dimensie" request.
When using the script below in an empty request: boomerang.setEnvironmentVariable('brt_id', item.TemplateId); var request = boomerang.getRequest('"QueryEngine".GetTemplateResultAsDataSet."PQ - Get Dimensie"'); console.log(request); boomerang.clearEnvironmentVariable('brt_id');
The variable {{brt_id}} never gets replaced by the item.TemplateId in the "PW - Get Dimensie" request.