locked
when should we go for PreOperation in dynamics crm plugin RRS feed

  • Question

  • i registered more plugin on Post operation.create,update,retrieve,retrievemultiple.Now when should i go for Pre-Operation plugin 

    Tell some Some scenarious for this Pre-Operation Stage?


    hsk srinivas

    Wednesday, January 7, 2015 7:10 AM

Answers

All replies

  • Hello,

    For example you need to pre-populate some fields and you don't want to hit CRM Endpoint another one time. Typical thing is AutoNumbering plugin.


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Wednesday, January 7, 2015 7:17 AM
    Moderator
  • will i use same pre operation for create,update,retrieve,retrievemultiple.then what the difference of post oper/pre oper?

    hsk srinivas

    Wednesday, January 7, 2015 7:20 AM
  • I believe difference is obvious. Pre plugin is called before information is stored in CRM DB. Post plugin is called after. Recheck following description - http://msdn.microsoft.com/en-us/library/gg327941.aspx

    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    • Marked as answer by Ppandu Wednesday, January 7, 2015 7:28 AM
    Wednesday, January 7, 2015 7:25 AM
    Moderator
  • Thank you.Got an idea Somewhat.

    hsk srinivas

    Wednesday, January 7, 2015 7:28 AM