locked
Pass parameters from one plugin to another crm 2011 RRS feed

  • Question

  • Hi,

    is it possible to pass parameters from plugin1 registered on entity1 to plugin2 registered on entity2 ?

    Thursday, February 6, 2014 10:55 AM

All replies

  • Hi,

    Yes you can pass parameters for sure. Here is the MSDN link for the same:

    http://msdn.microsoft.com/en-us/library/gg328579.aspx


    Hope this helps.
     
    -----------------------------------------------------------------------
     Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/

     
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    • Proposed as answer by Minal Dahiya Thursday, February 6, 2014 11:05 AM
    Thursday, February 6, 2014 11:05 AM
  • Hmm even if two plugins are registered on two different entities ?

    Thursday, February 6, 2014 11:13 AM
  • Hi,

    As far as I know, this is not possible through shared variable approach.

    What exactly you are looking for ?


    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !!!
    Vikram Singh. !!!  My Blog

    Thursday, February 6, 2014 11:22 AM
  • As long as they share the same context, SharedVariable can be used for the same. Read the article.
    Thursday, February 6, 2014 11:27 AM
  • SharedVariables won't work in this scenario, as plugins registered on different entities will necessarily have a different context.

    How are the two plugins related ? Is it that the code in one plugin submits a message via the IOrganizationService that causes the second plugin to fire ? If so, the only option is to find a means to include the data you want to pass as part of the message (e.g. by creating a dummy attribute)


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, February 6, 2014 2:39 PM
    Moderator