Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: JagdevHi Experts,
I need your assistance to deal with this. I am pulling the name of the file from the location where the URL could be separated by �//� or �\�. Could you please lemme know how to amend the below code to first check the URL separator and accordingly perform the next course of action.
dirtectoryFileNameList = filename.split("\\")
if dirtectoryFileNameList == "\\" then
{
directoryFileNameLen = dirtectoryFileNameList.len()
excelFileName = dirtectoryFileNameList.getItem(directoryFileNameLe n.subtract(1))
carrier = excelFileName.split("_").getItem(0)
}
emit *
emit carrier as Carrier_Underwriter
exclude fileName
Regards,
Jagdev