function getRecTypeURL (recType: string){
  let recTypeId = '';
  search.create({
    type: 'customrecordtype',
    filters: [['scriptid', 'is', recType]],
    columns: ['internalid']
  }).run().each(result => {
    recTypeId = result.getValue('internalid') as string;
    return false;
  })

  const hostURL = url.resolveDomain({ hostType: url.HostType.APPLICATION, accountId: runtime.accountId });
  return `https://${hostURL}/app/common/custom/custrecordentrylist.nl?rectype=${recTypeId}`;
}