AL icon indicating copy to clipboard operation
AL copied to clipboard

Get extension ID range

Open AbsolutelyFreeWeb opened this issue 6 years ago • 6 comments

Is there a way to know the object range inside a codeunit ?

I would like to get min and max of my id ranges within the upgrade code-units, but have to hardcode them for now, as I don't find a function giving me them.

AbsolutelyFreeWeb avatar Aug 30 '19 19:08 AbsolutelyFreeWeb

@AbsolutelyFreeWeb are you talking about getting the ID range specified in the app.json?

atoader avatar Aug 31 '19 15:08 atoader

@atoader yes correct. Is there a way not to hard code them in the upgrade codeunit?

even a pre-compiler command should do..

AbsolutelyFreeWeb avatar Sep 02 '19 05:09 AbsolutelyFreeWeb

Unfortunately, there is no way to get them at the moment. Long term, we want to move away from using IDs. You might be able to use AllObjWithCaption, AllObj or Nav App Object Metadata to get some of this information, but reflecting on the app.json is currently not supported.

atoader avatar Oct 02 '19 18:10 atoader

Any Update on this? I would also like to check all customer apps regarding overlapping ID Range Settings. At least I know, that they don´t have overlapping Objects :-) Thanks

metda11 avatar Mar 24 '25 15:03 metda11

Any Update on this? I would also like to check all customer apps regarding overlapping ID Range Settings. At least I know, that they don´t have overlapping Objects :-) Thanks

You can use command AL: Explorer to list all IDs within your app.

NKarolak avatar Mar 24 '25 19:03 NKarolak

Any Update on this? I would also like to check all customer apps regarding overlapping ID Range Settings. At least I know, that they don´t have overlapping Objects :-) Thanks

You can use command AL: Explorer to list all IDs within your app.

I would like to use it through an API to check if the customer has Apps installed with overlapping app id ranges. -> export all Apps with the App Range Setup from the Application, I don´t have the source code

metda11 avatar Mar 25 '25 14:03 metda11