Update Metadata Property of an Attribute in CRM 4.0 - dynamics-crm-2011

Can I update IsValidForAdvancedFind property for an attribute in metadata in a supported way. At present I have an attribute which I dont want to show in advanced find view.
Please help!

The following link contains all you need to know about making an attribute none – searchable
http://mscrmtools.wordpress.com/tools/searchable-property-attribute-updater/

There are several ways to update IsValidForAdvancedFind attribute but not every attribute of any entity can be updated. Can you please share which attribute from which entity do you want to update?

Related

Search specific attribute in all entities FetchXML Builder

This question might be silly/not possible. But I am trying to search in XMLBuilder where a specific attribute exists.
For example I have an attribute: mmm_attribute, but I am not sure in what entity it exists. Can I search and find it in XMLBuilder?
Thanks!

Adding entity property with more than 500 characters/setting unindexed

I'm trying to create a entity with a property of more than 500 characters by setting the indexed value to false.
How would I go about doing this with the gcloud-node library with the save function?
Thanks
As you probably noticed, the indexed value is true by default. I've opened a PR which would add support for overriding. If you have any thoughts and/or want to try it out, please post them over there :) https://github.com/GoogleCloudPlatform/gcloud-node/pull/218

How to find unused/non-dependent fields of any entity in CRM 2011?

I am trying to identify unused or non-dependent fields of any entity in Microsoft Dynamics CRM 2011. By unused or non-dependent i mean the field that is not used in any of the entity forms.
I have googled to find on the same topic but couldn't get the desired results. One link that i have come across also doesn't address this problem:
Finding unused CRM fields
First I should note that just checking if a field is not on a form does not mean it is not being used somewhere. There is a chance if you have a third party integration, or other logic running on an entity that it could be updating hidden fields. If you're unsure if there is data stored for an attribute you can do a retrieve request where your condition is that the attribute is not null. If nothing comes back then there is no data stored for that attribute.
Assuming that is already clear, what you'd want to do is utilize Dynamics CRM's Dependency Tracking to check for dependencies of individual attributes.
Here's the full article on Dependency Tracking for CRM 2011: http://msdn.microsoft.com/en-us/library/gg309749.aspx
The request that sounds most like what you're looking for is the RetrieveDependentComponentsRequest. This request seems to be the closest match according to what you're looking for and per the documentation:
Returns a list of dependencies for solution components that directly depend on a solution component.
For example, when you use this message for a global option set solution component, dependency records for solution components representing any option set attributes that reference the global option set solution component are returned.
When you use this message for the solution component record for the account entity, dependency records for all of the solution components representing attributes, views, and forms used for that entity are returned.
The basic steps to accomplish what you're looking for would then be:
Execute a RetrieveEntityRequest to retrieve all the attributes for a particular entity
For each attribute in the response, execute a RetreiveDependentComponentsRequest where you set the ObjectId to the MetadataId of the attribute, and the ComponentType to be 2 (attribute).
Parse the EntityCollection property on the response to see if any of the dependencies have a ComponentType of 24 (form).

Dynamics CRM 2011 SDK remove attribute with dependencies

I'm having troubles with removing the attribute of entity which have dependencies from SDK.
To remove an attribute I need:
RetrieveAttribute
RetrieveDependenciesForDeleteRequest
DeleteRelationshipRequest
and finally DeleteAttributeRequest
I would be appreciated for any advise about the plan above or sample code.
I couldn't find example at msdn so far.
So it appears that the RetrieveDependenciesForDeleteRequest is telling you that you have to delete a relationship before you can delete the attribute; and you are doing so.
I expect that this is a look-up attribute?
Is it visible in the entity form?
You won't be able to delete the attribute as long as the entity form has a dependency on it.

Siebel read only field problem

I'm trying to make a field read only when a given value is selected from a PickList.
I'm using a flag that is set to Y when the list has that value, and N otherwise.
I created a Business Component User Prop with the name Field Read Only Field: MyField set to the flag.
Thing is, this works with the vanilla component but it wont work on my custom component.
I can't figure out what is going on, the properties of the fields and flag are exactly the same. It should work...
Thanks for any help you can give me.
That user property is only supported on the business component class CSSBCBase and its subclasses. My guess is that you probably used CSSBusComp as the class of your business component. CSSBusComp is actually a superclass of CSSBCBase, and is very minimal and does not support Field Read Only Field. If that's the case, change it to CSSBCBase and you should be good to go.
Other option is that- if the record become read-only when the picklist value is being selected- that you'll need to make the picklist field Immediate Post Changes to be sure the user property is triggered.

Resources