You need to sign in to do that
Don't have an account?
Simran Suri
Apex Trigger to copy & insert/update related records from Child Object to Parent object
Hi Folks,
I am fairly new to Apex Development/Triggers, so, I need your help urgently. I am working with WorkOrder, WorkOrderLineItem & SkillRequirement standard objects. When the Skill requirement related record is created/updated on the Work Order Line Item(child), it should copy the same related record & insert/update it to the Skill Requirement related list on the parent WorkOrder(parent) based on condition that RelatedRecordId is a Work Order Line Item and Skill does not already exists on parent work order. Below is a brief synopsis:
Thanks in advance.
I am fairly new to Apex Development/Triggers, so, I need your help urgently. I am working with WorkOrder, WorkOrderLineItem & SkillRequirement standard objects. When the Skill requirement related record is created/updated on the Work Order Line Item(child), it should copy the same related record & insert/update it to the Skill Requirement related list on the parent WorkOrder(parent) based on condition that RelatedRecordId is a Work Order Line Item and Skill does not already exists on parent work order. Below is a brief synopsis:
- Roll-up of skills from WOLI to parent WO
- When: Skill Requirement is created or updated
- Criteria condition: RelatedRecord is a Work Order Line Item and Skill does not exist on parent work order
- What: Create Skill Requirement for Work Order (same skill level)
Thanks in advance.
You can take help from below code.
Below is the link.Please follow the steps.
Link - http://salesforce.stackexchange.com/questions/42583/trigger-to-update-child-records-based-on-parent-record
Thanks,
Harshit garg
harshitgarg2591@gmail.com