{How To} Using Xrm.Utility.openEntityForm to clone all fields of one record to another in Dynamics CRM.


Debajit's avatarDebajit's Dynamic CRM Blog

Looking at the title of the topic, you must be wondering what’s new in here. I think many of us by this time already know that we can clone one record of an entity to create another record easily using the Xrm.Utility.openEntityForm method. For e.g suppose we have an account record and we have a functionality provided to clone the account record. The cloned record would contain the same values and the parent record.

To do this in CRM, all you need to do is the following.

Now comes the big question. Although its pretty simple to copy field values from one record to another using the above method, imagine of a situation where there are lot of fields on the form to clone. Even for that matter there can be situations where the field is not even in the form of the parent record but you would still need…

View original post 145 more words

Generating Class Diagram using Visual Studio 2013


Hi,

Currently working on some documentation, so had to generated some class diagrams. Visual Studio 2013 provides us modelling project which can be used for generating the class diagram.

Check this article

http://blogs.msdn.com/b/cdndevs/archive/2014/08/11/working-with-class-diagrams-let-visual-studio-2013-do-the-work.aspx

Hope it helps..

Using HTML Tags for formatting in InfoPath Rich Text Box Control


Hi,

We had a requirement to format custom error messages that we were displaying in the rich text box control inside InfoPath Form.

For this we can use AppendChild method of XPathNavigator object.

For e.g. below is the html we need

The code that we need to use

XPathNavigator richTextField = domNav.SelectSingleNode(“/my:myFields/my:field4”, NamespaceManager);

richTextField.AppendChild(“<h2 xmlns=\”http://www.w3.org/1999/xhtml\”>Error Message Header</h2><p xmlns=\”http://www.w3.org/1999/xhtml\”>This is my custom <font xmlns=\”http://www.w3.org/1999/xhtml\” size=\”3\” color=\”red\”> error </font> message.</p>”);

The output

We need to define namespace for each tag used else we get exception.

The helpful post

http://www.bizsupportonline.net/infopath2007/how-to-render-html-in-rich-text-box-infopath.htm

Hope it helps..

Remove web part that is causing error from a SharePoint page


Hi,

On adding a web part if in a page at times it throws error and we need to access the page and remove that web part.

To do so we need to add the following querystring to the page url

http://localhost/Pages/Home.aspx?contents=1

It will open the page and will present the list of web parts in the page from wherein we can select and delete the web part that was causing the error.

Hope it helps..

Hello World InfoPath Form with Code Behind


Hi,

Had to do some POC around InfoPath form having code behind.

Found this wonderful article

http://johanolivier.blogspot.in/2010/08/infopath-2010-development-part-1-add.html

Bye..

CAML Query Builder for SharePoint 2013


Hi,

Recently had to write CSOM code to fetch value of a particular list item.

The following tool made it really easy to write the CAML Query.

https://spcamlqueryhelper.codeplex.com/

Bye..