locked
How to get handle for attribute "errormessage" of callout preCreate event in Plugin RRS feed

  • Question

  • Hi,

    I am trying to convert callouts into Plugin for preCreate event. The problem I am facing is with the "errorMessage" attribute

    PreCalloutReturnValue PreCreate(CalloutUserContext userContext, CalloutEntityContext entityContext, ref string entityXml, ref string errorMessage)

     

    The functionality implemented in callout PreCreate event has some logic to work with the "errorMessage" attribute.

     

    Now I need to implement same functionality in plugin, so need handle for "errormessage"  attribute in plugin.

     

    Appreciate help.

     

    Thanks,

    Vijayendra

     

    Monday, July 7, 2008 5:01 PM

Answers

  • A handle is not required, if you want to return error information, you just use:

     throw new Exception("ErrorInfoToDisplay");

     

    Monday, July 7, 2008 6:40 PM

All replies

  • A handle is not required, if you want to return error information, you just use:

     throw new Exception("ErrorInfoToDisplay");

     

    Monday, July 7, 2008 6:40 PM
  • Thanks Steven your Solution solved my problem.

     

    Friday, July 11, 2008 6:24 AM