I need to save the Email attachment to the destination folder. However, if the attachment (.xlsx, .xls, .csv) with same name already exists, e.g. “AAA”, how can I save the new attachment and rename it as “AAA_backup”.
before saving the attachment… check the file already available with pathexists activity… if pathexists - add _backup to the file name else just use the same file name…
PathExists - return boolean name like isFileExists
if isFileExists
true block - fileName = fileName + “_backup”
else - ignore
outside if block add your save attachment logic
Thank you for your helping. But I’m still struggle with how to “check the file already available with pathexists activity”. Could you pls provide some details about how to do it.