locked
Decrement Quantity on Hand When Quote Product Is Deleted RRS feed

  • Question

  • We want to decrement the quantity on hand of a Product when an Order Product is created for it. This is possible with workflow.

    But: how do we increment back up if the Order Product is deleted? Is there any way to do this without a plugin?

    Tuesday, April 2, 2013 7:13 PM

Answers

  • You can trigger a workflow also when a record is deleted (in your case Order Product)

    My blog: www.crmanswers.net


    Tuesday, April 2, 2013 7:32 PM
  • Should be similar to what you are probably doing to subtract the order product quantity from the on-hand.

    Create a workflow to run when an Order Product is deleted.

    Add an update step on Existing Product then set properties like this:

    Click in the On Hand field -> Operator = Increment By -> Look For Order Product / Quantity


    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Tuesday, April 2, 2013 7:36 PM
    Moderator

All replies

  • You can trigger a workflow also when a record is deleted (in your case Order Product)

    My blog: www.crmanswers.net


    Tuesday, April 2, 2013 7:32 PM
  • Thank you sir, you have given me my biggest "well duh" moment in a while. I am not sure why I got that stuck in my head that you can't fire workflows on delete.
    Tuesday, April 2, 2013 7:36 PM
  • Should be similar to what you are probably doing to subtract the order product quantity from the on-hand.

    Create a workflow to run when an Order Product is deleted.

    Add an update step on Existing Product then set properties like this:

    Click in the On Hand field -> Operator = Increment By -> Look For Order Product / Quantity


    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Tuesday, April 2, 2013 7:36 PM
    Moderator