Saturday 8 October 2016

Basis Javascript coding in MS CRM


1) To get  Entity Id

var accountId = Xrm.Page.data.entity.getId();

2) To set field  attribute visible

  Xrm.Page.getControl("new_accouuntname").setVisible(true);

3) to get value of attribute .

var accountname=Xrm.Page.getAttribute("new_accountname").getValue();

Business Rule in MS CRM


Business Rule in ms CRM  it Enchantment in MS CRM 2016

previous  version MS CRM we can only one condition .

In MS CRM 2016 Microsoft introduction if /else condition






above image is showing , In the business rule, we can use if /else condition to validate data.

for business rule, we can reduce the javascript code , the business rule having limit actions.

1) show error message
2) set field value
3) set business required
4)set Visibility
5) set default value
6) lock or unlock field



XRMToolsBox Solutions Components Mover









XRMtools Box provides very nice functions are Solutions Components mover .
It means copy all components from one solution to other solutions it an easy way to done it.
Many time I come across some components I have to move to other solutions .Other if we want to remove some component from solutions without in packing exists then we can use it .
In my case, I have to remove some component from one solution to put other solutions then delete that component from 1st one.
 following step for using solutions components mover.
1. download X rm toolbox 2016 latest :-http://www.xrmtoolbox.com/
2. create connection to Dynamics CRM:-
on left down a side  see the not connection ,click on that it will open pop up window for the new connection , enter organisation URL for your CRM some like- http://servername/organsationname  then click on go button.




3.  After it will open next window saying domain name ,username,password
domain name means user belong domain of dynamic CRM
example :- username :- dns\testadmin password :- password1
here :- DNS is a domain ,test admin is a username,password1 is password
4. after   it will open a new window for saying the name of the connection to save . put  any name of a connection



5. after clicking on menu of solutions Components mover , it will open tab then click on load solutions , it will load all solution of your organisation  into two different section, 
source solution section  for we can select source solution to move a component to Target solution after selecting source solution and target solutions click om copy component it will open window to choose which component to move.after select the component then click on ok button  and it was done.
we will the that all component is a move to your target solutions.