Entity Scope Business Rules demystified

Friday, August 12, 2016

Entity scoped Business Rules run on both client and server side. On the server side, Business Rules are executed synchronously when a record is saved (created or updated) and this means that in some cases, Business Rules can replace synchronous Plug-ins. Business Rules UX is better and maintenance wise, implementing business logic using the declarative Business Rule is preferred over Plug-in custom code.   Sounds great, but for some Business Rule actions the meaning of running on the server side is a bit obscure: Show error message: on client side, the save operation is prevented by the error...
no comments

Entity JavaScript Scaffold

Saturday, July 23, 2016

In the last couple of years I have been writing more JavaScript code than Server side code in my Microsoft Dynamics CRM projects. Better UX, plethora of supporting JavaScript libraries, easier deployment and maintenance made me prefer a client side solutions. I usually create a JavaScript library for each entity requiring client side functionality (forms, command bars etc.).Over time, I have formed a JavaScript class scaffold. As this scaffold has improved my productivity when it comes to developing, debugging and maintaining client side code, I would like to share it here. Consistently using this or any other scaffold,...
no comments

Color Your Entity

Monday, July 6, 2015

I have noticed a new attribute named ‘Color’ in the new entity form (Online, 2015 RU 0.1). It is not documented in the online help yet, but guessing this attribute purpose is not difficult: customize the entity panel color in the navigation menu for custom and existing (OOTB) entities. Nice! The Color attribute input text length is limited to 7 characters, to match a color Hex code such as #FF6600 (Orange). Setting a Hex code will let you preview the represented color in the preview box beside the attribute text box. You can find any color Hex code...
one comment