AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.06.2018, 01:17   #1  
Blog bot is offline
Blog bot
Участник
 
25,574 / 848 (80) +++++++
Регистрация: 28.10.2006
powerobjects: “Gotchas” with Business Rules in Dynamics 365
Источник: https://www.powerobjects.com/2018/06...-dynamics-365/
==============


Business Rule functionality was a welcome addition to the arsenal of customization tools in Microsoft Dynamics 365. It allows greater flexibility on entity forms without the need to completely rely on JavaScript development. However, there are some less known pitfalls that may leave you scratching your head wondering why the Business Rule you created had no effect.

In this blog, we share a list of “gotchas” for Business Rules in case you are stuck.

JavaScript interference


Before designing a Business Rule for a particular entity, make sure to check if any existing JavaScript on the form will interfere with your Business Rules. JavaScript may accidentally trigger your Business Rules prematurely or cause other unexpected behavior. If JavaScript already exists on the form, it may make sense to continue leveraging JavaScript instead of Business Rules to manage behavior on the entity form. This can avoid any conflicts from the get-go, but it may also be easier to support going forward since all the behavior is managed in one place. Just remember to take into account the expectations of form behavior for users on mobile devices.

OnChange behavior is not triggering


Do not use Business Rules to trigger an OnChange event. This is by Microsoft’s design, so the system does not accidentally get lost in an infinite loop.

Mismatch of field properties


If you have a Business Rule that is supposed to take a field’s value to update another field, it may not work. There may be no obvious indication of why it didn’t work (e.g. error message).

In this scenario, check the properties of the fields in question. If there is a mismatch in field data type, or if one field does not match the field length of the other, then the Business Rule will not work. Simply update one of the fields to match the other field’s data type and length and test the Business Rule again.

Check if all fields are on the entity form


If you are encountering issues with your Business Rules, it makes sense to check if all the fields involved in the conditions are present and published on the entity form. This may happen in a scenario where you are hiding a supporting field that shouldn’t necessarily be displayed to the user.

Check the scope of the Business Rule


Make sure to verify the scope of the Business Rule before activating it. This setting can be found in the top right corner of the Business Rule creation window. There may be scenarios where you do not want the Business Rule to trigger for multiple entity forms.

Conclusion


Hopefully the above tips may have resolved an issue with your Business Rules. Be sure to share your tips in the comments below if you have any other experiences with Business Rules!

For more helpful Dynamics 365 tips, be sure to subscribe to our blog!

Happy Dynamics 365’ing!



Источник: https://www.powerobjects.com/2018/06...-dynamics-365/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
powerobjects: Dynamics 365 as an Application Integration Platform Blog bot Dynamics CRM: Blogs 0 13.04.2018 02:16
powerobjects: Raising Dynamics 365 Awareness through Microsoft Stream Blog bot Dynamics CRM: Blogs 0 27.03.2018 02:35
powerobjects: Visualizing Data in Dynamics 365 Blog bot Dynamics CRM: Blogs 0 03.01.2018 05:45
NAV Team: Validating Single Sign-on with Office 365 and Microsoft Dynamics NAV 2013 R2 Blog bot Dynamics CRM: Blogs 0 19.12.2013 15:00
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 12 Blog bot Dynamics CRM: Blogs 0 30.01.2013 01:11

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 05:51.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.