You need to sign in to do that
Don't have an account?
pooja biswas
custom objects with No relationship
Hi friends
I have 2 custom objects, book1 and book2 with no relationship between them.
when I update a record in book1, the same record should be updated in book2.
Is this scenario possible if yes pls provide some inputs.
Thanks
pooja biswas
I have 2 custom objects, book1 and book2 with no relationship between them.
when I update a record in book1, the same record should be updated in book2.
Is this scenario possible if yes pls provide some inputs.
Thanks
pooja biswas
Yes the scenario can be achieved using a trigger.
However there must be some identifier field that will halp identify the corressponding field. Like Name (which must be same for both the records).
Let me know if you need anything else.
Kindly mark this as answer if it helped you.
Veenesh
It is possible using trigger but depends how you identify the simillar record in book 2.
Assuming, you have unique field, name or any identifier which inficates both are simillar. Then, on after update event of book1, you need to fetch book2 matching record using soql and update them accordingly.
Hope this will help.
I have written a code but I require some help. pls let me know
thanks
pooja
Update the method like below:
This will work i guess (There might be some syntax errors, but the logic is fine).Try this and let me know if it helps.
Veenesh
I tried the code but its not working.
pooja
No errors I am getting.
pooja biswas
This will do i guess :)
Veenesh
the code is not updating, no errors
pooja