You need to sign in to do that
Don't have an account?
Øyvind Borgersen 10
Trigger to check if file is attached
Hi!
I have a scenario where I need to check if a file has been added to a record. Does anyone have a sample code for this?
If there's an file attachment to the record, I'll update a checkbox.
I have a scenario where I need to check if a file has been added to a record. Does anyone have a sample code for this?
If there's an file attachment to the record, I'll update a checkbox.
Use below code:
I hope it helps you.
Kindly mark this as solved if the information was helpful. It will help to keep this community clean.
Regards,
Khan Anas
All Answers
Greetings to you!
Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Thanks, but I'm looking for similar feature but towards files and not attachment. Do you have a sample of that as well?
Use below code:
I hope it helps you.
Kindly mark this as solved if the information was helpful. It will help to keep this community clean.
Regards,
Khan Anas
thoughts?