DawidPotgieter / Dynamics-CRM-Binary-Storage-Options

A Dynamics CRM plugin to transparently store attachment binaries outside CRM database. Azure Blob or File storage for instance.
GNU Affero General Public License v3.0
34 stars 15 forks source link

Update email attachment when email is in pending send state. #15

Closed AxelPajot closed 5 years ago

AxelPajot commented 6 years ago

Hi, first i want to thank you for this plugin, it's great.

I have a question about how this plugin works when the email state is in pending send.

We are currently running this plugin on a CRM 365 on premise, and we are facing a problem when the email status is in Pending Send. Our email router sends emails every 5 minutes so when this plugin execute, it can't update the email attachment. I have an idea to fix this and i want your opinion on this :

Instead of updating the attachment we start a Workflow who wait for this email to be sent and then call a custom workflow activity to finally update the attachment.

DawidPotgieter commented 6 years ago

Hi there,

Pending Send is actually not something I've encountered before, so there's no specific case to handle it. However, I'll need some more information regarding what exactly is going wrong, because the events bound are basically Create, Read, Update, Delete.

So if any processes is trying to access an email attachment, the Read event should trigger, similarly when the attachment is updated, the Update plugin is triggered. I'm not sure why the sending process would be trying to update the attachments (the actual email record yes, but why attachments?).

Anyways, if you can provide me with some more information, perhaps an error trace (or profiling trace), I might be able to help.

Cheers.

DawidPotgieter commented 5 years ago

Hi there,

Any further questions or can I close the ticket?

AxelPajot commented 5 years ago

Thx yes you answered me. Sorry.

On Wed, Mar 20, 2019, 8:03 PM Dawid Potgieter notifications@github.com wrote:

Hi there,

Any further questions or can I close the ticket?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DawidPotgieter/Dynamics-CRM-Binary-Storage-Options/issues/15#issuecomment-475073681, or mute the thread https://github.com/notifications/unsubscribe-auth/AbQH_iT1OLA5XgldhPLeJiv8v7FMaDiAks5vYsxFgaJpZM4VnDGH .