Does Change Log can record delete behavior in cu

we have more people on the project to do develop. in these day, we found all the document dimension have been deleted. but no one can find error about their program. so I setup log on database. but I fount change log only record delete data by directly. does anyone cand tell me how I can find error fastly? thanks.

quote:


Originally posted by william-esg
we have more people on the project to do develop. in these day, we found all the document dimension have been deleted. but no one can find error about their program. so I setup log on database. but I fount change log only record delete data by directly. does anyone cand tell me how I can find error fastly? thanks.


You have to use DELETE(TRUE), so ChangeLog can intercept the triger. How can you find error? Use Navision Developer Toolkit and then use “Where used with options” for all DELETE comands on specifed table. Do you use Dimnesion Management or do you directy use “Documnet Dimension” table? Bostjan

DELETE(TRUE) in the code will not trigger the change log. This is because the change log isn’t called in the separate tables, its called in codeunit 1. This is itself only called when a user triggers something. However you can use the following code to trigger the change log from code: RecRef.GETTABLE(Dimension); ChangeLogMgt.LogDeletion(RecRef); Recref is a variable of type RecordRef. ChangeLogMgt is codeunit Change Log Management. There is also for Insertion and modification. Regards Daniel