In some cases you can solve that first getting the...
# suitescript
a
In some cases you can solve that first getting the domain/account url and then the record url without the external flag...