Who's Bruno Willian

My photo
I'm Bruno, I've been working as a Dynamics CRM consultant since 2012. This blog is intended to share acknowledgement not only about Dynamics, but also any technology we use to extend the platform.

Tuesday, March 22, 2016

Dynamics CRM Business Rules TOP 10 Important Points

Here are some important points we should be aware about business rules.
  1. Dynamics CRM 2015 has introduced a new scope level “Entity”. Setting the scope of the business rule at an entity level, forces the business rule to be executed on both server and all clients side. 
    • For instance, if Contoso only does business in the United States, a simple business rule can be implemented that on creation of an incoming lead, the country/region is automatically set to U.S.A. If we try through plugin or workflow to create a lead and set country/region different than U.S.A there will be an error and the transaction will be rolled back.
  2. Setting up lookup fields using business rules.
    • If you define a rule to set a lookup to a contact that has the Full Name of ‘Henrique’, this text is the Name you will see in the lookup when it is set by your business rule even if someone later changes the Full Name of the contact to ‘Henrique2’. The lookup Id value will be correctly set to the expected record, but the Name (which is not saved) will reflect the rule definition value rather than the current Full Name value of the record it references. To fix that, you will need then to update the business rule.
  3. Updated business rules will only be applied on mobile apps when it's re-opened.
  4. Javascript OnChange event handlers are not triggered if a field value is changed by a business rule.
  5. You cannot call a Javascript method from a business rule
  6. Actions cannot apply to fields from related entities.
  7. Business rules which don’t run due to fields not included on the form will not cause an error, it just won’t run.
  8. Business rules run only when the form loads and when field values change. They do not run when a record is saved.
  9. Whole Number fields that use the formats for TimeZone, Duration, or Language will not appear in the rule editor for conditions or actions, so they cannot be used with business rules.
  10. Business rules cannot show/hide sections or tabs

References
  • https://crmbusiness.wordpress.com/2014/10/27/crm-2013-business-rule-workings-limitations-and-exam-notes/
  • https://adisys.wordpress.com/2014/12/15/crm2015businessrules/
  • https://technet.microsoft.com/en-us/library/dn531086.aspx#BKMK_ServerSideBR

Monday, March 21, 2016

Angular JS - Powerful framework

Hi everyone,

In the today's post, I will give you an example of how powerful is Angular framework.

The link below will lead you to an angular project I have made. It is a simple not-well-structured project, my intention here is not showing you Angular good practices, but give you and idea of how angular might speed up application development.

Project download link: https://www.dropbox.com/s/cy159kheqpxncfa/Angularjs.rar?dl=0

After you have downloaded the project, open it up, check out the basic features within it, try to realize how you would accomplish the same functionalities in .Net, also how much time would you have spent doing that?

I am not an angular expert, however it took me two hours to get it working the way it is right now.

Well, that's it!

Thank you, till next post!

Monday, March 7, 2016

Falha ao Adicionar Conexões do Comutador Ethernet Virtual

Olá, este post será em português porque além do erro estar em português, não encontrei nenhuma referência em português que solucionou meu problema.

O erro ocorre ao tentar adicionar um Comutador Virtual no Hyper-V o seguinte erro é apresentado.


















Para solucionar o problema, é necessário desabilitar o ICS (Compartilhamento de Conexão com a Internet)

Navegue até a conexão (No meu caso Wifi) e clique em propriedades.





















Clique na aba Compartilhamento e então desmarque a opção Permitir que outros usuários da rede se conectem pela conexão deste computador à internet e pronto.