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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

How to ignore/remove condition in business

(0) ShareShare
ReportReport
Posted on by 95

Hi

I need to set default value for some field, How can I ignore or remove condition at image below ? I cannot update business rule because error below.

Note: I have upgraded CRM 2015 to Dynamic 365 CRM

7762.error.jpg

I have the same question (0)
  • H V Profile Picture
    351 on at
    RE: How to ignore/remove condition in business

    Hi,

    Did you click on Apply button?

    It seems that your last step(right side panel) is un saved. Please click on apply button(bottom - right) then click on validate.

  • baochau Profile Picture
    95 on at
    RE: How to ignore/remove condition in business

    If I apply, it will set condition, but I don't need any condition for business event.

    I just want to set default values for this form.

  • Suggested answer
    TNS Profile Picture
    1,197 on at
    RE: How to ignore/remove condition in business

    Hi,

    You are getting error because you have to provide at least one condition then only you can set default value. You can have condition like "if (xyz field does not contains data)" and then you can set your default value.

    Or you can use javascript at on load for setting default value. If its option set then you can set default value also by going to that field properties and set the default value.

    Regards,

    TNS

  • baochau Profile Picture
    95 on at
    RE: How to ignore/remove condition in business

    So I cannot set empty condition or I only use JavaScript.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: How to ignore/remove condition in business

    Hi,

    You can not remove or ignore condition statement. However you can add condition which will always return true no matter what happens on record. For example Case entity will always have case Number. So we could add condition as Case number conain data which will always return true.

    If found helpful, Please mark my answer verified.

  • TNS Profile Picture
    1,197 on at
    RE: How to ignore/remove condition in business

    Yes, you can not use empty condition, when you will provide condition then only you can proceed further. Else, you use javascript.

  • Suggested answer
    Jorge Landazabal F. Profile Picture
    on at
    RE: How to ignore/remove condition in business

    Hi Folks

    By design, you cannot remove this conditional. This one prevent a recursive execution to Business rule.

    I suggest use the next logic to implement your Business Rule - BR

    if field1 is empty
    set field1 to XXX (Default value)

    this simple logic execute only one time when the field is empty. You can use the same logic to set ever the option to a unique value. Ex

    if field1 is not XXX
    set field to XXX

    If found helpful, Please mark my answer verified.
    Regards

    Jorge Landazabal

  • Suggested answer
    JayBuddhdevtest Profile Picture
    275 on at
    RE: How to ignore/remove condition in business

    Hi,

    Depending upon your business need you can either create business rule, JS, or Flow. I will be explaining it with few business scenarios.

    1. If you want the user to enter the value, but if the value is empty you want to set a default value. In this scenario, you can also do a business rule with a condition if a field is empty then in yes set its default value
    2. If you want the user to not enter anything and set the default value by its own, and you want to keep the field visible on the form. There are couple of ways to do this.
      1. The first suggestion is to create a flow from make.powerapps.com and select a Automated from blank flow, with a step when a record is created in CDS. Select entity and then add a step of update and add the default value to the field. Now you can keep the field on the form, or you can remove it. Also if you are keeping it on the form, you can keep it editable or you can lock it. Depends upto your need.
      2. Now the second way is to add a field to the view, keep the field as non editable and then create a business rule with condition, if a field is empty set the field value to your default value.
      3. Now the third way, is to create a JavaScript. Which would do exactly same work, but you can add complex calculation or get field values and set default values according to the calculation.

    The main difference between a, and b is that with a, the value will be updated only once and it gives you capability to let the user change its value. While with B, the value can never be empty. If you keep it empty the business rule will change it to the default value.

    I hope this helps. Please let me know if you have any questions/concerns.

    Thanks

    Jay

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 125

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 97 Super User 2025 Season 2

#3
Erin Lubben Profile Picture

Erin Lubben 73

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans