Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Business Rule and Date Issue (Bug?) - Unified Interface

Posted on by Microsoft Employee

I've got a relatively simple business rule that applies to a date field. The fields behavior is Date Only if that makes any difference. These are also all custom fields on custom entities.

The business rule is as follows:

IF

Plan of Care Signed by Client? equals "Yes"

THEN
Unlock Plan of Care Client Signature Date
Set Plan of Care Client Signature Date as Business Required
ELSE
Lock Plan of Care Client Signature Date
Set Plan of Care Client Signature Date as Not Business Required
Clear Plan of Care Client Signature Date

I've done rules like this in the past - seems pretty straightforward.

The business rule itself works as expected. However, when I refresh the form for an existing record (either using the browser refresh, or the one in the ribbon) the value in Plan of Care Client Signature Date is decreased by one day. If I save the record (or it is auto saved) and refresh again, one more day is subtracted. This happens without fail as long as I navigate to the tab that the field is on. This also only happens in the unified interface. If I disable the business rule, this behavior stops. I'm assuming this is a bug, but I thought I'd make sure I'm not missing...something. I'll probably go ahead and submit a support ticket also.

This is happening in chrome, and I'm having issues logging in on another browser so I'll have to check it in a bit. Also, other devs saw this same issue, so it's not unique to my user. I've also tried having the business rule scoped to All Forms and Entity, and there was no difference.

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Rule and Date Issue (Bug?) - Unified Interface

    I got in touch with Microsoft support, and it appears to be a product defect - here was their response:

    Setting the field to required is the root cause for the date value decrement. Seems to happen specifically to Date and Time fields that have both Behavior and Format set to “Date Only”.  I’ll be filing a product defect report on this.

    In the meantime, we're going with a JS workaround.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Rule and Date Issue (Bug?) - Unified Interface

    When it is "No" I clear the date value, so it doesn't happen then - I can play around some when I get a few minutes and remove the clear step and see if it is somehow tied to a particular step though

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Business Rule and Date Issue (Bug?) - Unified Interface

    Hi Carter, it seems to be a bug as well, as this is a very simple business rule.

    Does it happen with the Plan of Care signed by client field is both yes or no, or only when it is a particular value?

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans