Add FormattedValues to Context from a Plug-in RRS feed

  • Question

  • Hi Everyone,

    I am looking for some best practice advice on modifying the context from a plug-in.

    The solution I am working on is an integration between CRM 2013 Online and Windows Azure Service Bus. One of the requirements is to send Contact Create, Update and Delete events to a Service Bus Queue.

    Our Contact entity contains some Option Set fields which works fine for Create as the actual value rather than the ID is included in the InputParameters / FormattedValues section of the context message.

    However, on an Update the InputParameters / FormattedValues section is not populated meaning I only have access to the Option Set fields' IDs.

    What I have implemented is a plug-in that will retrieve the Label for the Option Set field and populate the InputParameters / FormattedValues with this key/value pair similar to how it is populated in the Create message.

    Is it considered bad practice to modify the context in this manner? If so, what is the best practice for adding fields to a CRM message when integrating with Service Bus?

    Thanks in advance,

    Colin Meade (MCTS BizTalk Server) http://midheach.wordpress.com

    Thursday, January 30, 2014 2:55 PM