Archive
Merging solutions in CRM 2011
Imagine you have 2 developers (Dev 1 & Dev 2) in your team working on 2 different organizations and 2 solutions, at the time of every release, you need to merge the components of both developers in to 1 solution.
One way is
- Import Dev 1 & Dev 2 solutions in to another new organization.
- Create a new solution and add the components of both solutions manually
- This is easy if Dev 1 & Dev 2 solutions has less components.
What if the components are huge? you need to manually pick and add components both solutions in to a single solution or
Another way of merging solutions
- Export & Save the both Dev 1 & Dev 2 solutions
- Extract the saved solution .zip folders
- Open “Solution.xml” files in both solutions in a notepad
- In the <UniqueName> node, provide same unique name in both “Solution.xml” files
- Import them back to new a organization
- After the import, we get a new merged solution.
- This is easier way of merging if the solutions has lot of components
Refer below MSDN video for more details
🙂
event.returnValue is not working after UR 12 – Fix
We use event.returnValue=false statement, to stop the event execution. (i.e., I can stop my crm form’s save action, if I write event.returnValue=false statement on my onsave() event).
After I upgraded to UR12, I was getting script error, if I use the event.returnValue statement.
Reason
- Update Rollup 12 and December 2012 Service Update support additional browsers by generating HTML that supports W3C standards.
- This requires removing dependencies on HTML components (HTC) that are specific to Internet Explorer.
- Hence event.returnValue statement has been deprecated
Fix
- Use context.getEventArgs().preventDefault() function to cancel the event execution
How do I use this
- First to get “context”, enable the OnSave event handler to pass the execution context as the first parameter to the OnSave event handler.
- Open customization form -> Form Properties and in “Handler Properties” window, select the “Pass execution ….” checkbox
-
- Next in your Jscript , read the context as first parameter
function onsave(context) {
// Prevent the event execution
context.getEventArgs().preventDefault();
}
Get more details on latest CRM JScript changes from this link
🙂
CRM online instance opening only in Mobile version – Fix
The other day, when I upgraded to IE 11 browser and when I browse my CRM online URL, I was getting only mobile version (i.e., http:// Orgname.crm5.dynamics.com/m/default.aspx).
Even if i explicitly provide the URL http:// Orgname.crm5.dynamics.com/default.aspx, it was redirecting to Mobile version Reason
- CRM online is not compatible with IE 11
Fix
- Add CRM online site to IE 11 compatibility list
- Go to Tools -> Compatibility View Settings
- Add the “dynamics.com” website to compatibility view settings by click on “Add”
- If its “OnPremise” add CRM server name to compatibility view settings.
- Refresh the browser
🙂