You need to sign in to do that
Don't have an account?
Jay Parikh 36
Apex trigger Urgent
Hi all---
I have reqierement where there are two object : account is parents and product is child
now i want to update two fields on account 1. early purchased 2. latest purchased
Early purchased will update based upon the product which is bought first one and latest purchased will update on same account where product bought latest one
how i will achieve this trigger?
I have reqierement where there are two object : account is parents and product is child
now i want to update two fields on account 1. early purchased 2. latest purchased
Early purchased will update based upon the product which is bought first one and latest purchased will update on same account where product bought latest one
how i will achieve this trigger?
Hope this helps and mark it best answer if it solves the question!
Thank You!
All Answers
Do your company sell more than one products? If yes, then one account can have many opportunities and one opportunity can have many products so which one should be valid for Early Purchased and Latest Purchased?
Do you use opportunitiy and attach products to it?
Our company is not using opp we are only using product and one account has many product how will achieve by trigger??
Accoun Name: Acme, INC.
Products
Product-1 Sold on Jan - 1 - 2017
Product-2 Sold on Dec- 31-2016
Product-3 Sold on Aug-1-2017
Product-4 Sold on Dec-31- 2017
At this point for an Account, early purchased = Dec- 31-2016 and latest purchased = Dec-31- 2017
Is this the requirement?
Hope this helps and mark it best answer if it solves the question!
Thank You!