How to modify codeunit in business central online?

I need to modify codeunit 1704/1705 to add filter for bank payment type.

How can I do this?

Hi,

You cannot modify any objects in Business Central SaaS.

So you need to do it indirectly, by creating an extension with VSCode and hook into the existing code using events already in the codeunit. That means that unless there is an event where you need it, then you cannot do it.

Hi,

I found that these code unit ids are for on-prem not online. How can I find codeunit ids for business central online?

They are they same, except for some special ones for cloud.

So you can see the code in the on-prem version.

But the best way would be to use the event recorder. That would should you exactly which events are published today.

If there are no events today, which allows you to do what you need, then you can go to ALExtensions at GitHub.com and post a request for a new event publisher. If Microsoft also think that it’s a good idea, then it will be added. You need to write it with a few more words than you used in your question! They need to know the business case behind this requirement, why do you need it and which work-arounds have you considered but rejected etc.