Hi,
In CRM 2011, I am going to create a plugin step for account using code like this. However, it reports errors.
...
var step = new sdkmessageprocessingstep(){
FilteringAttributes = "accountnumber, telephone1",
...
The error I receive is:
The dependent component Attribute (Id= telephone1) does not exist. Failure trying to associate it with SdkMessageProcessingStep (Id=e92a3270-430e-e311-ad76-000c299be3db) as a dependency. Missing dependency lookup type = AttributeNameLookup.. Stacktrace at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType).
I have tried setting the following.
FilteringAttributes = "telephone1", or FilteringAttributes = "accountnumber"
Both of the above execute without error.
This leads me to think that its not possible to set filtering attributes using the format:
"attribute1, attribute2, etc"
Does this mean that you cant specify more than one filtering attribut programmatically?
Perhaps the pluginregistration tool does something to the filtering attributes.
Maybe setting some filtering objects.
Hope someone has a solution to this other than handling this in the plugin for the new step.
Thanks in advance.