locked
Batch Process RRS feed

  • Question

  • Hi 

    How to Create Batch Process as i need to schedule  this Batch Process weekly.

    Thank You.


    K V SambasivaRao

    Friday, September 27, 2013 12:50 PM

All replies

  • Dynamics CRM does not have a scheduling engine for user processes. You have two main options:

    • Use an external scheduling engine, such as a SqlAgent Job, or Windows Task. I would normally take this approach OnPremise
    • You could create a recursive workflow that waits a week, then calls itself, and implement the batch logic as a custom workflow activity

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Friday, September 27, 2013 1:13 PM
    Moderator
  • 1. Workflow and plugin combination (this one Ia have tested and it works fine):

    a) Workflow with "wait for" condition and setup flag (to start plugin)  

    b) Plugin starts on flag, do the job, get a flag, set "until date", and starts workflow again:

    ...so back to a)

    2. Goal has a schedule process I have never tried but probably this could also starts plugin?

    Sunday, September 29, 2013 12:20 PM
  • You can use workflow to implement your requirement and schedule it to run weekly.

    you can refer: http://www.koorb.co.nz/highlights-and-updates/scheduled-recurring-workflows-in-dynamics-crm-2011/

    http://www.powerobjects.com/blog/2012/11/09/create-recursive-or-scheduled-workflows-in-crm/


    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Sunday, September 29, 2013 5:57 PM
    Moderator
  • Hi ,

    Actually what i want is i need to take backup of CRM 2011 Online Records because we dont have DB Backup right for this i want to schedule this Batch Process weekly for taking backup of Online CRM 2011 Records.

    i have some reference link.

    http://blogs-dynamicscrm-ashutoshmisra.blogspot.in/2013/08/take-automatic-backups-for-records-in.html


    K V SambasivaRao

    Monday, September 30, 2013 7:03 AM
  • Hello,

    In that case I think you have options to use some third party software like scribe or write your custom .net utility for this.you can't implement above solution in MS CRM online plugin or custom workflow because of security reasons.

    Also you can get your organization database backup from microsoft, check for FAQ for CRM Online.

    HTH


    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Monday, September 30, 2013 7:12 AM
    Moderator
  • Hi Mahender,

    Can we have option of Exporting CRM 2011 Records into Excel using .Net Code.

    Thank You.


    K V SambasivaRao

    Monday, September 30, 2013 7:16 AM
  • Yes, as I said you could write a .net utility and connect to your organization using ms crm webserices. After that you could store this data as required.

    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Monday, September 30, 2013 7:19 AM
    Moderator
  • Hi Mahender,

    Can you please provide any link for this.

    Thank You.


    K V SambasivaRao

    Monday, September 30, 2013 7:21 AM
  • Hi,

    you can use above link only, just look for sample code to connect ms crm online in latest MS CRM SDK.


    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Monday, September 30, 2013 7:29 AM
    Moderator