You need to sign in to do that
Don't have an account?
Anshuman Parhi
Build solution to show count of number of Attachment (Classic +Lightening) on record detail page (Create custom filed to store count). Count should get updated on the basis of delete /Insert.
Any suggestion for this.....thanku in advance
Here is an example of trigger on Attachment object which could count the files for a provided Task object record:
You can customize similar logic for the target object which you want to implement.
Hope above information helps, Please mark as Best Answer so that it can help others in the future.
Thanks.
Could you give me some realtime example....i am not able to find attachment object where i can create a custom NumberofAttachment__c field.
Try Below Code
As Attachment File Can Be Uploaded To Any Object Please Mark It As Best Answer If It Helps
Thank You!