You need to sign in to do that
Don't have an account?
Anshuman Parhi
When any record from Account object is deleted, its name & deletion date/ time should be saved in this ‘Accounts Delete Log’ object.
Create custom object ‘Accounts Delete Log’ with fields: Deleted Account Name, Account Deleted Date, Account Deleted Time. When any record from Account object is deleted, its name & deletion date/ time should be saved in this ‘Accounts Delete Log’ object
Greetings! If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi
All Answers
>> https://trailhead.salesforce.com/content/learn/modules/create-a-custom-object-quick-look/create-a-custom-object
For creating a custom object with your needs you can follow the above link and modify it to your needs.
For the trigger prat you can use the below snippet and modify it accordingly:
To modify date you can check this link: https://www.salesforcecodecrack.com/2020/04/format-dates-and-time-using-apex-in.html
Please do note this is a sample snippet and you need to modify it accordingly.
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.
Thanks.
Greetings! If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi