Codeunit 80 adding code to use for extension

Developer101Developer101 Member Posts: 566
Hi,

I want to make a change in NAV 17 using extensions. So the change basically will be using the standard objects. I have some extra fields on sales tables that need to be transferred to Cust Ledger Entries (extra fields are on cust ledger table as well) when sales invoice is posted.

Traditionally this is easy to do, customisation will be needed in CU 12 and 80 to transfer those extra fields, as I will be using extensions and extra code will need to be placed in customised codeunit which will be used as Subscriber, all is find but my problem is that I cannot find a suitable publisher in CU 80 in the right place to call. Any one has idea?

Thanks
United Kingdom

Best Answers

Answers

  • guidorobbenguidorobben Member Posts: 157
    life is a bitch. Maybe see if you can find them in NAV2018 and port them back.
  • Developer101Developer101 Member Posts: 566
    Do you mean use the codeunit 80 from nav 18 in nav 17?
    United Kingdom
  • guidorobbenguidorobben Member Posts: 157
    look if they added the triggers you need and port that code back to 2017.
  • Developer101Developer101 Member Posts: 566
    ok if they were added then porting back to 17, that would be mean customising the codeunit in 17 , i thought we were not allow to do that when using extensions?
    United Kingdom
  • guidorobbenguidorobben Member Posts: 157
    is this for your own database of for azure?
  • Developer101Developer101 Member Posts: 566
    its for customer database , not the azure version just local client.
    United Kingdom
  • guidorobbenguidorobben Member Posts: 157
    well then. What is holding you back. If yo use the same triggers as 2018 . It will still work in the future.
  • guidorobbenguidorobben Member Posts: 157
    Dont add the extra triggers in your extension, but in a Fob.
  • Developer101Developer101 Member Posts: 566
    but will it work in extensions too after adding those events?
    United Kingdom
  • Developer101Developer101 Member Posts: 566
    Answer ✓
    Ok thanks gonna try
    United Kingdom
  • guidorobbenguidorobben Member Posts: 157
    Ok thanks gonna try

    So it worked?
  • Developer101Developer101 Member Posts: 566
    Not tested yet but should work
    United Kingdom
Sign In or Register to comment.