function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.