+ Start a Discussion
THUNDER CLOUDTHUNDER CLOUD 

How to update product quantities after purchases ?

AnupPrakash_AlgoworksAnupPrakash_Algoworks
Hey Thunder If you could provide more detail then that would help the Community to answer.
THUNDER CLOUDTHUNDER CLOUD
I have two objects - product and purchased Items. Both the objects have quantity fields. I need to update quantity field in product after the product has been purchased.
Pratyush Kumar 56Pratyush Kumar 56
Do they share a relationship? What type of relationship is it? If Product is the parent and Purchase the child then you can write a trigger on the child and summarize the information on the Parent.