I have Four objects in salesforce Project , Project Phase , Project Task, Task Details.
Project Is master Project Phase Is child. Project Phase is Master and Project task is child Project Task is Master and Task Details is child.
In the system, there is a project, along with phases and tasks and details. I want to create a sample record by copying these objects data.
I have a situation now i have three tasks records and i want to create tasks, phases, details of these tasks and associate this to new Project.
How do i achieve this?
In simple words i have task records and i have to insert first a new hardcoded project than associate these task and the phases of these tasks and details of these task to new hardcoded project.