locked
SdkMessageProcessingStep FilteringAttributes format RRS feed

  • Question

  • 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.

    Monday, August 26, 2013 12:20 PM

Answers

  • Hi,

    The FilteringAttributes property does not allow spaces. Change the value to:

    accountnumber,telephone1


    Michael Palmer
    xRMPalmer     @MJFPalmer     Rockstar365

    • Proposed as answer by MJFPalmer Monday, August 26, 2013 12:42 PM
    • Marked as answer by CM.EG Monday, August 26, 2013 12:44 PM
    Monday, August 26, 2013 12:24 PM

All replies

  • Hi,

    The FilteringAttributes property does not allow spaces. Change the value to:

    accountnumber,telephone1


    Michael Palmer
    xRMPalmer     @MJFPalmer     Rockstar365

    • Proposed as answer by MJFPalmer Monday, August 26, 2013 12:42 PM
    • Marked as answer by CM.EG Monday, August 26, 2013 12:44 PM
    Monday, August 26, 2013 12:24 PM
  • Hi,

    Thank you for the quick reply.

    It works perfectly!

    Monday, August 26, 2013 12:37 PM