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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Which is best CRM Plugins or a Custom Workflow

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to create 1000 tasks when a task is created in CRM, what would be the ideal way to handle this, is it a plugin or a custom workflow. because i heard plugins should execute with in 2 seconds, other wsie it will timeout, which approach would be best in this situation, also should be able to delete set of tasks and update set if tasks with this approach, please advice

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Daivat Vartak (v-9davar) Profile Picture
    7,835 Super User 2025 Season 2 on at

    It depend upon the set of actions that you are trying to perform post task creation.

    If that contains lot of actions (your condition request to wait until some other actions) then you go with Workflow. Even in workflow you have 2 options (Sync and Async)

    If you looking for some action that needs to be perform immediately post record creation then you can go for Sync workflow else if you wants to be action may perform later (in next couple of min) then you can go for Async workflow.

    Just for FYI, If you are going for Sync workflow, post task creation it will wait until the workflow complete its action.

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello Asanka,

    First thing any custom code execution timeout is 2 min (not 2 second), so whether it is plugin or custom workflow it will timeout after 2 min. So whatever you select you need to make sure your code should execute fast. you can ExecuteMultipleRequest to create your task.

  • Verified answer
    Community Member Profile Picture
    on at

    Make sure the tasks you create have a custom property set that identifies them as being automatically created. Otherwise your 1 Task will create a1,000 which will then try to create 1,000 each (=1,0000,000), then things will go downhill fast.

    Asynch plugin seems a reasonable option to me for this.

  • Suggested answer
    Sartaj Profile Picture
    880 on at

    ExecuteMultipleRequest is best suited in terms of Performance when you want to execute collection of requests from "outside" of CRM.

    Plugins which execute on Server shows Performance degrade with ExecuteMultipleRequest  comparing to plain service call.

    Below is the link for debate on Performance of plugin with or without ExecuteMultipleRequest with proper POC.

    stackoverflow.com/.../is-it-beneficial-to-call-executemultiplerequest-from-within-a-plugin

    Whether you go with custom workflow activity or plugin , code execution time should be less then 2 min limit.

    If this is exactly 1000 record on create of Task which you need to create, update or delete I think can be done within 2 min.

    You can give a try with asyn plugin to validate, thanks.

    Sartaj

  • Community Member Profile Picture
    on at

    Thanks Everyone...

  • Community Member Profile Picture
    on at

    Thanks Adam...

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans