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 thje scenario.I just want to know how to get started.
Cloud_forceCloud_force
if you want to check field values on Hearing object then write your trigger on that object.
you can create object records as below:
for ex:
account acc = new account(
fiedl_-c ='';
)

insert acc;

this would insert new account record.

thanks,
http://www.forcexplore.com/2014/01/salesforce-interview-question-1.html
sravya sadhusravya sadhu
Iam new to development side caould you explain me in detail Thanks, Sravya