Many months ago, I had help getting a global js working that would return the shortid of the report.
I have updated to v2 and now that isn't working again. Has the playground been updated? The previous link to the playground works for this but I can't get it to work locally in v2.
one of the breaking changes of v2 is this, since your old script is using
if (req.options.isChildRequest)you need to update that to
if (req.context.isChildRequest). remember to review all breaking changes first when analyzing why something does not work in v2.