NB: This code (createExternal) is dispearing anyway, see HPCC-11136.
So I will have to rebase one of the 2 commits once one of them is merged to resolve clash.