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)

Business rule only works on new records but not on existing records

(1) ShareShare
ReportReport
Posted on by

My Business rule works perfectly on new Account records but not on existing records. The scope of my business rule is on All forms.

Can somebody tell me what i did wrong? Or what I need to check?

Thanks!

*This post is locked for comments

I have the same question (0)
  • M I Mostafa Profile Picture
    4,257 on at

    Hi there,

    Can you try to change the scope to Entity level and see if that fixes it?

    Thanks

  • Community Member Profile Picture
    on at

    Can you please tell us the conditions you are using in the rule? There might be a catch.

  • Community Member Profile Picture
    on at

    I just tried that, but it didn't work.

  • Suggested answer
    M I Mostafa Profile Picture
    4,257 on at

    We need more information to be able to help. Which Dynamics version are you working on (online / on-prem)? 365 or 2016? If you can also provide a screen shot with the actual business rule, we may be able to find out the issue for you.

    Thanks

  • Community Member Profile Picture
    on at

    Business-rule-does-not-work.png

    The scope of the rule is now set to Entity. I use Microsoft Dynamics 365.

    These are the conditions used:

    If:

    "Relationtype: Agent" is equal to "Yes"

    Then:

    Set default value of "Type organisation: Internet retailer" to "Yes"

    Else:

    Set default value of "Type organisation: Internet retailer" to "No"

  • Suggested answer
    M I Mostafa Profile Picture
    4,257 on at

    Business rules work on updating the field that your condition is set to work on. Are you changing the values of existing records to test the business rule? The business rule won't work in all exiting records without you updating the record. If you want to apply change to all existing records the you might want to configure a workflow, bulk edit or other job to apply the change on all records.

    Please mark as verified answer if this response has helped you.

  • Suggested answer
    M I Mostafa Profile Picture
    4,257 on at

    Business rules work on updating the field that your condition is set to work on. Are you changing the values of existing records to test the business rule? The business rule won't work in all exiting records without you updating each record. If you want to apply the change to all existing records then you might want to configure a workflow, bulk edit or other job to apply the change on all records.

    Please mark as verified answer if this response has helped you.

  • Community Member Profile Picture
    on at

    The business rule only needs to work when i'm using the Account form. It doesn't need to work for data import or to mass update data in the system. However it needs to work when i'm creating a new account and when I open a single existing single account record.

  • ashlega Profile Picture
    34,477 on at

    Hi Elmar,

     could you confirm there are no other rules/javascripts modifying the same fields? (if there are such rules, try creating a new field and see if your business rule works for that one. If it does, you'll need to dig into those other rules/scripts)

  • Suggested answer
    M I Mostafa Profile Picture
    4,257 on at

    Hi Elmar,

    The business rule is triggered when you change the value of the field. In your case, it is the "Relationtype: Agent" field. It will trigger on new and existing records but only if you change the value of this field.

    Hope this makes sense!

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