You need to sign in to do that
Don't have an account?
Hari.gs
Log Writting
Hi,
Can i keep a log file in SFDC through Triggers.
ie, When a trigger fails i need to write some information in a log file and it should be accessible through salesforce.com.
Thanks and Regards
Hari G S
ya max u got the point.... but not only one text area field what ever related info u can save that in different fields....error info in a text area field... some thing like this....
All Answers
create a log object and maintain what ever information that u need to track in the log with in repective fields ...when ever trigger fails create a log object in the trigger catch blog and create a record based on the requirement and error deatils...if salesforce itself is unavailable then u can't track this....
Hi,
Thanks for the reply.
Can i create an object at run time?
I read somewhere that we cannot be able to create a field or object dynamically.
nope create a custom object in the system and create the log record for that object.. thats what i am saying ... u can't create a object through apex....
Hi Kiran,
You mean I need to create aCustum object with a textarea field say Log and write to this field each time when my trigger fails. Is my understanding right?
Thanks
Hari G S
ya max u got the point.... but not only one text area field what ever related info u can save that in different fields....error info in a text area field... some thing like this....
Thank you Kiran