Hi Everyone,
I am trying to automate outlook application. But I am getting the below error continuously.
Caused by: com.novayre.jidoka.outlook.api.exception.JidokaMsOutlookException: Invoke of: RetentionPolicyNameSource: Microsoft OutlookDescription: The operation failed.
Has anyone faced similar scenario . Please guide me if you had overcome this scenario.
Thanks
Discussion posts and replies are publicly visible
I have a workaround, in case you don't have to attach files:
- Instead of doing this (according to documentation):
IOlMailItem newMail = new OlMailItem(); newMail.setSubject("Subject for IJidokaOutlook mail"); newMail.setTo("toAccount@myCompany.com"); newMail.setCc("ccAccount@myCompany.com"); newMail.setBody("Body for IJidokaOutlook mail"); IOlMailItem createdMail = outlook.getOlMailManager().createMail(newMail, true); outlook.getOlMailManager().addAttachmets(createdMail, "C:\\temp\\attachment.pdf"); outlook.getOlMailManager().sendMail(createdMail);- You do this (send your newMail without creating):
IOlMailItem newMail = new OlMailItem(); newMail.setSubject("Subject for IJidokaOutlook mail"); newMail.setTo("toAccount@myCompany.com"); newMail.setCc("ccAccount@myCompany.com"); newMail.setBody("Body for IJidokaOutlook mail"); outlook.getOlMailManager().sendMail(newMail);