locked
Plugins - InputParameters and OutputParameters RRS feed

  • Question

  • Hi all,

    I have a plugin registered on Post Update for a custom entity,

    I have an entity from with the following fields:

    A,B,C

    I update just these three fields and then Save the record.

    As I understand the attributes for the input parameters will (A,B,C) since they have been changed or "dirty"

    So what would be the output parameters? As far as I've seen most examples on the web only deal with the "id" attribute for a post create operation.

    Cheers,

    Stanley


    Tuesday, September 23, 2014 5:50 AM

Answers

  • Hi,

    The below information may help you.

    OutputParameters will have the properties of the response message which is returned as part of pipeline execution. It will have one key OptionalParameters.

    For PreCreate

    Inputparameters - Two key – Target and OptionalParameters

    Target – It had 35 properties basically one for all the attributes with its corresponding values

    For optional parameters it had following value CreateDuplicatesOptionalParameters with the value as false.

    For PostCreate.

    InputParameters – Target – same 35 properties for each attribute.

    OutputParameters – Had one key – id with values of the newly created lead.

    For PreUpdate

    InputParameters – It had attributes whose values have been modified , leadid (primarykey of lead) as well those attributes that have forceSubmit true.

    CreateDuplicatesOptionalParameters with the value as false.

    Outputparameters – Nothing in output parameters

    For PostUpdate

    InputParameters – It had attributes whose values have changed, leadid (primarykey of lead), as well those attributes that have forceSubmit true.

    CreateDuplicatesOptionalParameters with the value as false.

    Outputparameters – Nothing in output parameters.

    For PreDelete

    Target was of type -Microsoft.Crm.Sdk.Moniker having Id of the record to be deleted and name as entity name – lead

    For create,update message Target property was -Microsoft.Crm.Sdk.DynamicEntity.

    Nothing in OptionalParameters

    Outputparameters – Nothing in output parameters.

    For PostDelete

    Target was of type -Microsoft.Crm.Sdk.Moniker having Id of the record to be deleted and name as lead

    Nothing in OptionalParameters

    Outputparameters – Nothing in output parameters.

    Thank you,



    Sreeni Pavalla

    Tuesday, September 23, 2014 6:48 AM

All replies

  • Hi,

    The below information may help you.

    OutputParameters will have the properties of the response message which is returned as part of pipeline execution. It will have one key OptionalParameters.

    For PreCreate

    Inputparameters - Two key – Target and OptionalParameters

    Target – It had 35 properties basically one for all the attributes with its corresponding values

    For optional parameters it had following value CreateDuplicatesOptionalParameters with the value as false.

    For PostCreate.

    InputParameters – Target – same 35 properties for each attribute.

    OutputParameters – Had one key – id with values of the newly created lead.

    For PreUpdate

    InputParameters – It had attributes whose values have been modified , leadid (primarykey of lead) as well those attributes that have forceSubmit true.

    CreateDuplicatesOptionalParameters with the value as false.

    Outputparameters – Nothing in output parameters

    For PostUpdate

    InputParameters – It had attributes whose values have changed, leadid (primarykey of lead), as well those attributes that have forceSubmit true.

    CreateDuplicatesOptionalParameters with the value as false.

    Outputparameters – Nothing in output parameters.

    For PreDelete

    Target was of type -Microsoft.Crm.Sdk.Moniker having Id of the record to be deleted and name as entity name – lead

    For create,update message Target property was -Microsoft.Crm.Sdk.DynamicEntity.

    Nothing in OptionalParameters

    Outputparameters – Nothing in output parameters.

    For PostDelete

    Target was of type -Microsoft.Crm.Sdk.Moniker having Id of the record to be deleted and name as lead

    Nothing in OptionalParameters

    Outputparameters – Nothing in output parameters.

    Thank you,



    Sreeni Pavalla

    Tuesday, September 23, 2014 6:48 AM
  • Great thanks for this !
    Thursday, September 25, 2014 12:37 AM