Hello,
I created an email connector with attach files and it works well.
When I attach the file, it works well. However, once I didn't attach the file, it has an error.
I validate formOutput like :
if($data.formInput.authdocumentDocumentInput){
return {
'authdocumentDocumentInput': $data.formInput.authdocumentDocumentInput
};
}else{
return {
'authdocumentDocumentInput': null
};
}
But, the error occurred when I didn't attach the file.
Caused by: org.bonitasoft.engine.connector.ConnectorException: org.bonitasoft.engine.connector.ConnectorException: unable to retrieve attachments for the email.
Caused by: org.bonitasoft.engine.connector.ConnectorException: unable to retrieve attachments for the email
Caused by: org.bonitasoft.engine.bpm.document.DocumentNotFoundException: USERNAME=ConnectorAPIAccessorImpl | org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException: Document not found: authdocument for process instance: 60037
Did i something miss or do I need to add groovy script in the connector instead of variable?
Any help would be appreciated.
Thanks in advanced.