Skip to main content

Notifications

Dynamics 365 Community / Forums / Field Service forum / Business rule to lock ...
Field Service forum
Suggested answer

Business rule to lock fields not firing

Posted on by

Hi I have a very simple business rule, pretty much the requirement is if 'Is Customer Integrated' field equals 'Yes' AND 'Created On' field contains data THEN Lock the two fields below. IF 'Is Customer Integrated' equals 'Yes' set the two fields below to mandatory. 

I'm not sure what the issue is but my business rule does not seem to be firing and the fields are still able to be modified when 'Is Customer Integrated' is set to 'Yes' and 'Created On' contains data.

IF
Is Customer Integrated? equals "Yes" AND Created On contains data
THEN
Lock External Reference
Lock External System
ELSE IF
Is Customer Integrated? equals "Yes"
THEN
Set External Reference as Business Required
Set External System as Business Required
  • Matt Se Profile Picture
    Matt Se on at
    RE: Business rule to lock fields not firing

    Hi I figured out what the issue was.

    The 'Created On' field was not on the form itself, I added the field and it has to be visible in order for the Business Rule to read the data.

    Works fine now.

    Thanks

  • Matt Se Profile Picture
    Matt Se on at
    RE: Business rule to lock fields not firing

    Hi Steve,

    Have confirmed my business rule is active and I have also set Scope to 'All Forms' but it is still not working.

    Also don't think there are any other business rules or processes that are conflicting.

    Thanks

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business rule to lock fields not firing

    Hi Matt Se,

    I tested the logic of your business rule, It could work:

    When 'Is Customer Integrated' is set to 'Yes' and 'Created On' contains data:

    pastedimage1637137157409v2.png

    When 'Is Customer Integrated' is set to 'Yes' and 'Created On' doesn't contain data:

    pastedimage1637137204100v3.png

    Please check the following point:

    1. Make sure your business rule is active.

    2.If the scope of business rule is one of the form, please make sure you were using the corresponding form. You can check scope here:

    pastedimage1637137255666v1.png

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,888 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans