You need to sign in to do that
Don't have an account?
Vaibhav Babrekar
Can anyone help me out with this requirement (Urgent)
Create an Account Record with Name = “ABC”. Create associated contacts. Create aCustom field called Contact Count on Account. Query on Contact where Account.Name =“ABC” and count the associated contacts. Update the custom field on Accounts with thatcount.
Do you want trigger to update the count of contacts or you want to create the code for above scenerio in anonomous window?
Thanks,
Firstly thank you so much for replying my question. I want to execute this in Anonymous window. Can you please help me.
Thanks in Advance
Can you try the below code in anonomous block.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
Try Below Code Trigger As Well As Anonymous Code Please Mark It As Best Asnwer If it Helps
Thank You!