Update opportunity entity fields after opportunity product delete
-
woensdag 30 mei 2012 14:38
Hi All,
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.
Alle reacties
-
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.
-JayB
-
donderdag 31 mei 2012 9:06
Hi JB,
Ofcourse not, I have registered a pre image for delete step.
-
donderdag 31 mei 2012 9:14ModeratorPlease share you code and error here for inquiry.
Mahain : Check My Blog
Follow me on Twitter
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.