- Print
- PDF
Error When Using the MailFrom JobInfo in Dynamics FO Connector
Status Update
Resolving this issue is proving to be more complex than initially expected. We will provide updates as soon as they become available.
When using the MailFrom JobInfo in Lasernet FO Connector with Lasernet 10.10.3, the Outlook Mail Output module automatically defaults to using SendOnBehalf, regardless of the specified email address. This leads to the following error message: The specified object was not found in the store.
This issue will be addressed in Lasernet 10.10.4. In the interim, two approaches ensure Outlook Mail operates effectively when configuring MailFrom in Dynamics. None of these methods entails using SendOnBehalf, as it is currently non-functional.
Workarounds
1) Delete the MailFrom JobInfo Before Sending an Email
a. Remove the JobInfo “MailFrom” by setting an enter modifier in the Outlook Mail module.
b. Execute this script: job.deleteJobInfo("MailFrom");
2) Use Multiple Sender Addresses
Note
This is not the same as SendOnBehalf; you will need to create multiple Outlook Mail modules, each with their own credentials.
a. Create as many Outlook Mail modules as you wish to send emails from; each must include the following script: job.deleteJobInfo("MailFrom");
The following screenshot displays two modules:
b. Set up similar destinations using the Destination Selection module and include additional criteria based on the MailFrom JobInfo. In the following example, they are “user1” and “user2”.
When printing and sending the MailFrom JobInfo as “user1”, the job goes to OutMailOne, and for “user2”, it goes to OutMailTwo.
For example, for the user “User2”, set from D365 Connector:
The destination selection goes to OutMailTwo:
Then, OutMailTwo sends:
Note
It is recommended to refrain from installing Lasernet 10.10.3 when using this functionality.