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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Wokflow Execute Multiple Times

(0) ShareShare
ReportReport
Posted on by

Hi all

I have created one workflow which execute when we update a particular filed(Recursive Date) in Form. I have also used plugin to assingn the value to Recursive Date in post operation when we create the form.

I have also used javascript for assingning the value to that field(Recursive Date) in update case, after changing the start date its value assing to recursive date using that javascript.

when i create new form, the workflow execute once, its fine. But when i update the start date of any existing record, workflow executes multiple times.
can anyone tell me, why workflow execute multiple times in update case.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Use 'Wait Until' condition and give your condition in workflow

  • Suggested answer
    Community Member Profile Picture
    on at

    The workflow runs when the value of the field changes. So when you update the start date, JavaScript also changes the value of that field, so the workflow would run. Now you are also updating the recursive date by using a plugin. So because of that plugin, the workflow would trigger one more time.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Based on your explanation, multiple update cause this. Since you are using javascript & plugin to update, update message trigger multiple times. Try to achieve your logic either in plugin or JavaScript.

    Mansoor

  • Community Member Profile Picture
    on at

    Plugin execute when we create the record..not while updating the filed manualy.

  • Suggested answer
    Community Member Profile Picture
    on at

    Are you updating the recursive date again in workflow?

  • Community Member Profile Picture
    on at

    yes

  • Suggested answer
    Community Member Profile Picture
    on at

    You are running a workflow on change of recursive date and in that workflow you are again updating the same field. This will result in an infinite loop by triggering the workflow again and again. When the recursive date has been changed, is there a specific reason you updating it again in workflow?

  • Community Member Profile Picture
    on at

    The scenario is:-

    In the form one field as recursive type which is weekly,monthly and yearly.

    if user select recursive type as weekly then workflow will execute in every 7 days. I have used rescursive date for storing the next week date.

    The workflow wait for recursive date,  when recursive date reached, it gets the next recurisve date from code and this recursive date will update in next step.

    And when recursive date is greater than end date, i have stoped the workflow.

    I think now you clear why i have updated recursive date. If you have better solution please share.

  • Suggested answer
    Community Member Profile Picture
    on at

    The solution looks fine if I look at your description. Can you make sure there no other workflow which is updating the field or, any custom code updating the entity object having recursive date column in it?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans