+ Start a Discussion
Shubham Sinha 49Shubham Sinha 49 

Write a trigger on Collection

I have a requirement where a object Collection__c has a picklist field 'Product__c',  and one look up field 'Location'.Collection has a related record 'Product Required'. When a Collection__c record is created - Product required and location automatically created through our logic. 
Location itself a Standard object and it has a related record 'Product Item'. We have Manually updated 'Product items' on each Locations.

So now requirement is if "Product Required" on Collection__c and "Product Item" on Location(Populated on collection__c object) matches then Picklist field "Product__c" updated to 'In Stock' and if not then 'Out Of Stock'.

I know it is bit complicated to understand but if  anyone can help on this please.

lincoln bosslincoln boss
Buy fake passport, Visa, driver's license, ID CARDS, [idpielts.exams08@yahoo.com]
Buy a fake passport, Visa, driver's license, ID CARDS,

We are a team of professionals with many years of experience in producing fake passports
and other identity documents, producers of fake documents of the best quality. together with
more than 10 million documents circulating in the world.

We only offer original high quality genuine fake passports, driver
driver's license, identity cards, stamps, birth certificates, fake international diplomas
and other products for a number of countries such as: USA, Australia, Belgium, Brazil, Norway
Canada, Italy, Finland, France, Germany, Israel, Mexico, the Netherlands, South Africa, Spain, United Kingdom. This list is not complete.

*All the secret real passport features are carefully reproduced by our unique producer.

We also offer identity cards made in PVC: identity cards, driving licenses, passports, etc.
all with a hologram and indistinguishable to the human eye.