You need to sign in to do that
Don't have an account?
siva krishna 61
We have two objects. It's having look up relationship. I need record count of that object. Example Account object and contact object. I need count of contacts to each Account.
We have two objects. It's having look up relationship. I need record count of that object.
Example Account object and contact object. I need count of contacts to each Account.
Example Account object and contact object. I need count of contacts to each Account.
Below is sample code for trigger that counts no of attachment on Account. Let me know if this helps:)
Thanks!
Amit Singh
Try this :)
Hi siva,
Please follow below simple snippet code for your use case - It will work in every context means (Insert,Delete,update).
Please mark as best answer, if it works, otherwise let me know the same . I am happy to help you :)
Thanks
Rajat Maheshwari