ernikoss
ernikoss

Reputation: 63

CRM create plugin that executes every 10 minutes

Can I create in dynamics CRM plugin that will execute every 10 minutes, after user sign in?

Thanks

Upvotes: 0

Views: 566

Answers (1)

Henk van Boeijen
Henk van Boeijen

Reputation: 7918

You are probably looking for a way to audit user logon. This feature was added to Dynamics CRM 2011 in RU 5. See the Microsoft Dynamics CRM Blog.

When enabled, user logon is tracked in the Audit entity. User sign-off is not tracked, because Dynamics CRM sessions are stateless and users are not required to log-off.

It is not possible to audit the Audit entity, so you are not able to hookup a plugin or workflow to the login event. An option could be to query the Audit entity at certain intervals, i.e. by an external process (service or scheduled commandline tool).

Plugins can only be triggered by messages issued to the CRM platform. Plugins can not be scheduled; the only way to invoke a plugin repeatedly is by sending messages to the platform by a scheduled process. (Such a message can be as simple as a RetrieveRequest.)

Upvotes: 1

Related Questions