locked
new line in InvalidPluginExecutionException / updating entity / plugin to send e-mail with attachment. RRS feed

  • Question

  • Hi all

    I'm trying to display error list with InvalidPluginExecutionException instance.

    errorlist is a String with all errors

     

    throw newInvalidPluginExecutionException("something is missing \n"+errorlist);

    but when the error is displayed I have only one line with
    "something is missing error1 erro2" etc

    someone know how to something like :
    "something is missing
    error1
    erro2" ?

    I have also another question ...
    I'have a plugin launched by updating an entity.
    It gets severals informations about this saved entity and I want to modify some attributes of this entity that's possible to do for exemple.

     context.OutputParameters.Properties["name"] = "new_name";


    and a third Question.
    Is that possible to send e-mail with attachment by a CRM plugin ?

    Thank in advance

     

     

     

    Tuesday, December 15, 2009 6:11 PM

Answers