Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)
Answered

Scheduled Run of a Dynamics CRM plugin

(0) ShareShare
ReportReport
Posted on by 380

Hi All,

In our Dynamics CRM we are using workflows and plugins (nothing unusual), however we have certain workflows that triggers a custom plugins as a step.

What i was wondering and trying to find, and testing is is there a way to create a scheduled workflow/MS flow that will run automatically only a certain CRM plugin, and if the plugin fails to either alert me via email or retry automatically to run it again?

I was looking for MS flow, which have visibility of CRM plugin base, and i can specify the plugin key or name that i want, however there is no (or i cannot see it) a action or trigger that will run this flow (lets say every 24 hours or to set a date and time when this to be run).

Hope someone have any advise or workaround.

Let me know if you need any clarification on my idea.

Regards

*This post is locked for comments

  • Radoslavov Profile Picture
    Radoslavov 380 on at
    RE: Scheduled Run of a Dynamics CRM plugin

    Thx Allison I've already checked this its is just the rest of the logic that I'm trying to figure out

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Scheduled Run of a Dynamics CRM plugin

    Here's an article on scheduling Flows - docs.microsoft.com/.../run-scheduled-tasks

  • Radoslavov Profile Picture
    Radoslavov 380 on at
    RE: Scheduled Run of a Dynamics CRM plugin

    Hi Kokulan,

    Thanks for the response, i will try this and let you know how it went.

  • Verified answer
    Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Scheduled Run of a Dynamics CRM plugin

    Hi,

    follow the steps in the blog - https://alexanderdevelopment.net/post/2016/12/10/executing-dynamics-365-workflows-from-microsoft-flow/

    In the step 1 trigger, you can use recurrence action that helps you schedule for daily and trigger your current workflow from the steps

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Scheduled Run of a Dynamics CRM plugin

    You could move your plugin code to Custom Workflow Activity(CWA), it wont be a lot of re-work. And then use your CWA in scheduled workflow to perform the task and if the task fails send an email from your workflow. I know you can use flow but in this case, CRM workflow and a CWA should be more than enough.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans