locked
Update Quote Details and Quote Header Business Rule Plugin Methods? RRS feed

  • Question


  • When validating/ normalizing/ recalulating parent-child entities such as (quote-->quote_details) as part of an n-tier like system to enforce business rules:

    1)    What plugin / registration settings / image requests etc. would give you the best control over the final data dropped into Dynamics CRM 4?

    2)    Is this better solved as an sql-server trigger? (I hope NOT)
     
    Assumption: The rules need the ability to evaluate/alter any or all of the values of the entitiy and its children. 
    Ace of Trades
    Tuesday, December 1, 2009 3:46 PM

All replies

  • Call For HELP!

    Judging by the number of view without replies,I guess this is a task
    many people are working on without good answers yet.

    My current thinking: (brute force)
    By registering for the post event of both the parent and child entities in the parent pipeline and the child pipeline (four plugins)
    and assuring that these are the last plugins called in ther respective stacks,
    I would have the final say on the calculated fields that are commited to the database. (before control is returned to the user)

    This would probably result in less than desireable effeciency due to extra recalulation / validation passes.

    Feel free to point out anything stupid in there ;)
    Ace of Trades
    Tuesday, December 1, 2009 5:04 PM
  • Please, even if you are just looking for the answer to this, reply...

    Who knows, maybe someone who's done this sort of thing before will notice
    if there are more devlopers seeking a clue about this.
    Ace of Trades
    Tuesday, December 1, 2009 7:28 PM
  • Yes this is a lame attempt at keeping this going untill I get some help <shame>
    Ace of Trades
    Wednesday, December 2, 2009 10:06 PM