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
sravya sadhusravya sadhu 

There are two custom objects called Hearing and CAPA. Cortex/CAPA is the junction object between these two objects using lookup relationship.

Write a trigger to create a CAPA and Cortex/CAPA records when these conditions are met:
Confirmed Late Delivery field is ticked
Cortex/Order field equals Order
Delivered Status (Final) field = Delivered Late

This is the scenario .I am new to development could anyone explain how to get started with the task.
logontokartiklogontokartik
Hi Sravya,

Please go through the force.com workbook and Apex Workbook in the documentation and start writing your trigger. Maybe when you write your trigger and if you have any specific issues please post it to forum so that we can help. 

Below is link for your reference.

https://developer.salesforce.com/page/Force.com_workbook

Thank you.