locked
Custom workflow RRS feed

  • Question

  • Hi all,

    I'm trying to create a custom workflow with an input parameter that must refer to a customer lookup which may be an acount or contact.the problem is how to make one input lookup to get from two different entities such as account/contact ??


    Osama
    Tuesday, July 26, 2011 9:13 AM

Answers

All replies

  • Hi,

    In CRM 2011, you can use the code like this:

     

      [Input("Account")]
      [ReferenceTarget("account")]
      public InArgument<EntityReference> jj_AccountEntityReference { get; set; }
    

     


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Tuesday, July 26, 2011 9:53 AM
  • Yes, but this code will only create an input that gets data from account entity only.so how can i create an input that gets data from account/contact just like the potential customer lookup in opportunity for example
    Osama
    Tuesday, July 26, 2011 10:11 AM
  • Hi,

    You can not create a Multi Type lookup with CRM standard functionality, few Multi Type lookup fields will be available byd efault if you will create custom entity as Activity or you can have two lookup fields 1. Contact Lookup field and 2. Account Lookup field and based


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Tuesday, July 26, 2011 10:17 AM
  • Thanks Jehanzeb.Javeed.

    Sorry but how can I create Multi Type lookup in custom workflow activity?? Is that possible??


    Osama
    Tuesday, July 26, 2011 10:37 AM
  • Hi,

    You can take two entity paramters in Custom Workflow Actvity but can not create Multi Type lookup.


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    • Proposed as answer by Jehanzeb.Javeed Tuesday, July 26, 2011 1:39 PM
    • Marked as answer by zarour Wednesday, July 27, 2011 6:36 AM
    Tuesday, July 26, 2011 1:38 PM