Webcenter Capture 12.2.1.4, Mail movement not working
Hi All,
We've a script which validates Email subject line by extracting Invoice Number from it. If it's not able to extract the Invoice no then it won't import the email.
function preImportFile(ctx){
batch = ctx.getBatchLock().getBatch();
bId=batch.getId();
if (invNum == 'undefined'){
ctx.cancel = true;
logger.info("Batch Import has been cancelled for BatchID - " +bId);
}
}
Now from WEC workspace we've configured that if Import is successful then the email should move to a success folder and if the email import isn't successful then it should move to failed folder of the mailbox. But whether it's a success case or failure case....it's always going to success folder only.