Trace or Capture Company Rename

geschwintgeschwint Member Posts: 10
Does anyone know if there is a way in Nav to capture if someone chooses to rename a Company? Like if I need to do something pre/post to the actual event, Clean something, remove some setting or what-not...
Beautiful things can be performed using XSLT/XPATH/XML, Yes, I'm a geek

Comments

  • kinekine Member Posts: 12,562
    Which version of NAV? In 2009 and newer you can try to use the triggers in CU1. In older, I think there is no such a point... only on SQL level...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Why do you think it's not possible in older versions? Change Log allows you also to check the Company table. So, it should work the same way, shouldn't it?
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can add code in the OnRename-trigger of the Company table. But the strange thing is that COMPANYNAME returns blank inside that trigger #-o
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • kinekine Member Posts: 12,562
    Why do you think it's not possible in older versions? Change Log allows you also to check the Company table. So, it should work the same way, shouldn't it?
    You can set it up, but because the rename is not standard user data change, but build in function, I am afraid that it will not trigger change log...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Aahh... I see what you mean. You mean there's a difference between renaming the company via File -> Company -> Rename and just go to the Company table and change the name in here.

    Edit: You are right. File -> Company -> Rename doesn't fire the Change Log trigger. :|
    "Money is likewise the greatest chance and the greatest scourge of mankind."
Sign In or Register to comment.