web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

running/executing Plugin Automatically

(0) ShareShare
ReportReport
Posted on by

Hi,

  I have written a small program that sents out email when i add a new contact, but now i want it to run it automatically as it is deployed. and Need to send out emails every 30 mins. which means without any Events like contact/ account add.

can anyone help me please or can give some idea ??

Best Regards

*This post is locked for comments

I have the same question (0)
  • Aileen Gusni Profile Picture
    44,524 on at
    RE: running/executing Plugin Automatically

    Hi Shah, what is your small program? Do you mean console app?

    Can you just using Windows Task Scheduler then set every 30 minutes?

    Because I think you still want to use your program rather than using CRM Workflow or recode send email function, since in your prev post you already done the sent email.

    Or you mean small program is plugin?

  • Aileen Gusni Profile Picture
    44,524 on at
    RE: running/executing Plugin Automatically

    Or another way, you can try to use SSIS + Kingswaysoft data connector to send email using workflow

    There is another link written  by my friend

    andz88.wordpress.com/.../bulk-execute-on-demand-workflow-with-kingswaysoft-ssis

    Well there is another way to have recurring workflow:

    gonzaloruizcrm.blogspot.com/.../quite-often-we-have-business-process.html

    It depends what do you want: Console App + Task Scheduler, SSIS, or Workflow, depends on the small program what do you refer to. Let's say you still want to keep your plugin to send email because workflow logic and dynamic value are limited, maybe you can use the recurring workflow method by updating the contact field: for example you have trigger field in the contact, then register your plugin on Contact Update very time the trigger field is being updated. Once the trigger field is updated, then it will trigger the plugin you created to send email

  • Community Member Profile Picture
    on at
    RE: running/executing Plugin Automatically

    Hi Thanks for the reply yeah its a crm plugin which sent Email and now i want it to run automatically and send Email

  • Aileen Gusni Profile Picture
    44,524 on at
    RE: running/executing Plugin Automatically

    in which message you register your contact plugin? Plugin is not possible to be scheduled

    social.microsoft.com/.../crm-2011-scheduled-plugin

    Otherwise, try to update a record that can trigger your plugin, you can use scheduled workflow to update a 'hidden trigger' field in Contact to trigger your plugin or using task scheduler, schedule every 30 minutes.

    Or change your code to console app or custom workflow that you can make it possible as scheduled job.

  • Community Member Profile Picture
    on at
    RE: running/executing Plugin Automatically

    Well actually i m doing is i have a list of employees and i want to send them Emails when 1 week is remaining to some predefined date for this purpose i am using linq to querry all the data i need to send in the email to that employee so i have a plugin that does it all but i need it to run every second like calculating time etc and this plugin should not trigger on contact etc it should run automatically mean trigger automatically

  • Suggested answer
    Aileen Gusni Profile Picture
    44,524 on at
    RE: running/executing Plugin Automatically

    Hi Shah,

    The plugin is only triggered by an event, for example :onCreate or OnUpdate once the Contact record is created or update or deleted, anything about message.

    If your point is to calculate time, etc then change to Custom Workflow or Console app and register in the task scheduler.

    Thanks.

  • Community Member Profile Picture
    on at
    RE: running/executing Plugin Automatically

    Hi, thankyou for your reply. well okay i got it if i write a plugin for dynamics CRM it will trigger only to specific event create update etc. Lets suppose i write a custom workflow in dynamics CRM for fullfilling this task, will i be able to achieve what i want and does task scheduler allows to register a CRM workfow and execute it ???

    Thanks

  • Aileen Gusni Profile Picture
    44,524 on at
    RE: running/executing Plugin Automatically

    if then, better you change to console application then register using task scheduler. If you use CRM WOrkflow, then the only way to schedule is based on my previous link: using timeout condition.

    gonzaloruizcrm.blogspot.com/.../quite-often-we-have-business-process.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans