Tool Update : Searchable Property Updater for CRM 2011 (1.1.919.75)

One of my fellow MVP asked me for the possibility to display if an attribute is displayed on at least one entity form. This will ease the decision to make an attribute valid for advanced find.

I thought it was difficult because of the need to export a solution to get the xml of an entity forms.

But it can be achieved a lot more easily! Entity forms, in Microsoft Dynamics CRM 2011, are just like any other entity, so you can simply retrieve the forms with a simple QueryExpression (or QueryByAttribute, in my case).

The code sample:

QueryByAttribute qba = new QueryByAttribute("systemform");
qba.Attributes.AddRange("objecttypecode", "type");
qba.Values.AddRange(entityLogicalName, 2);
qba.ColumnSet = new ColumnSet(true);

EntityCollection ec = oService.RetrieveMultiple(qba);


So, this new version is much more useful since you can see easily if an attribute is used on a form, and you can also check only attributes used in at least one form by pressing a single button.


searchAttrPropUpdaterUpdate


As usual, you can download, review, discuss or log issue for this tool one codeplex

Comments

Jim Wang said…
Excellent, this tool works very well to me.

Thanks Tanguy!
Scott Sewell said…
That's a very nice enhancement-
Thank you Tanguy!

Popular posts from this blog

Use feature flags in your plugins

New XrmToolBox plugin : Import/Export NN relationships

Searchable Propery Attribute Updater