woensdag 30 mei 2012 14:38
i want to write a plugin which would update some custom fields in opportunity if an opportunity product is deleted. My solution works for create and update but is not working with delete.
Basic logic is
1. refernce the pre and post image of opportunity product entity.
2. query expression to get all opportunty products with respect to opportunity id of the image.
3. declare Opportunity variable as 0.
4.query expression to get the relevant opportunity with respect to opportunityid of the image.
5. updaterequest to the opportunity.
woensdag 30 mei 2012 15:56
Without seeing the actual code, I would say the problem could be that the Delete request will not include an Entity Post image. If you try to reference that, the code will fail.
donderdag 31 mei 2012 9:06
Ofcourse not, I have registered a pre image for delete step.
donderdag 31 mei 2012 9:14Moderator