+ Start a Discussion
ashish jadhav 9ashish jadhav 9 

Will trigger work for without relationship object?

Say for example I've 2 objects x & y, and they dont have any relationship. Now my task is when a perticular field of x object get insert/update/deleted then it must insert/update/deleted from y object.
How to achieve this functionality?
Sujit Anil NirkheSujit Anil Nirkhe
Ashish, can you elaborate on scenario. I understand that, there's no relationship between Object X and object Y, but on field value change of X's record, what actually you want to do(delete /insert/update Y record)?  If so there might be some logic to identify which record of Y should be picked...
Srinivas SSrinivas S
1. Insert you can do straigt forward.
2. Update/delete: you should identify a common field which stores same kind fo information based on that you can update/delete.
- Please mark as solution if your problem is resolved.
ashish jadhav 9ashish jadhav 9
Hi Sujit, actually I want to know that, if there is no master detail relationship between object, then can we use trigger to insert/update/delete/undelete on another object? If yes then is it for before or after? & how can we achieve this?