Owner parameter in custom workflow RRS feed

  • General discussion

  • Hi,
    I created a custom workflow called from Account.
    In this workflow i created an input parameter of type lookup in order to hold the Owner. When i try to chose the Owner from the workflow calling the custom Activity, i don't get Owner in the list showing the Account's fields. Why? how can i get the owner value as input parameter?
    Wednesday, September 30, 2009 12:54 PM

All replies

  • First, did you add CrmReferenceTarget in your input property to specify that the lookup points to systemuser entity?

    Like [CrmReferenceTarget("systemuser")]

    My blog : http://mscrmtools.blogspot.com You will find: Form Javascript Manager (export/import javascript from forms) ISV.Config Manager (graphical ISV.config edition - export/import) View Layout replicator (customize one view and replicate to others) And others (use tool tag on my blog)
    Wednesday, September 30, 2009 12:59 PM
  • Hi, Sabine.

    Check this code (it works in my custom workflow action):

    public static DependencyProperty MailRecipientProperty = DependencyProperty.Register("MailRecipient", typeof(Lookup), typeof(SendReport));
            public Lookup MailRecipient
                    return (Lookup)base.GetValue(MailRecipientProperty);
                    base.SetValue(MailRecipientProperty, value);

    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Wednesday, September 30, 2009 1:06 PM