Hi,
I'm using "infolog.line" to show my message, but I notice there is a warning while Build saying it is obsolete. It is suggested to use Global class, which one actually and how to use it ?
The document xGlobal.infologLine Method (Dynamics.AX.Application) | Microsoft Learn is not really clear.
I'm using infolog for my Try Catch() scheme.
for (i=1; i<=infolog.line(); i ) { infolog.text(i); }
Thanks,
No, this thread didn't begin with infologLine() (which is the same thing as Global::infologLine()). The question was about infolog.line().
"The fact that infolog.line() is not related to infolog.text()." This actually quite confusing for some people since at first I thought should be using the same "family" of code, so if now need to use Global class for the infolog.line() then infolog.text() as well, I guess it is not... and no such thing as "family of code"
Anyway, it is resolved then.
But for the "simply use infologLine() instead of Global::infologLine()." This is where the thread begin with.
Thanks
By the way, the prefix Global:: isn't needed. You can simply use infologLine() instead of Global::infologLine().
The fact that infolog.line() is not related to infolog.text().
If you happen to also have a problem with infolog.text(), please create a new thread (because the topic of this one is "What is replacing infolog.line when it says obsolete ?") and explain your problem there.
It seems that Girish's reply answered your question, so don't forget to to mark it as such (by using Did this answer your question? > Yes).
Try the below code.
for (i=1; i<=Global::infologLine(); i ) { infolog.text(i); }
Girish S.
Yes, but how to show the text then ? for the infolog.text(i), this is the part when it is not clear.
Hi AxelCage,
You can navigate to line method of infoLog class by clicking F12. On that class they will recommend you to use another class instead of current one.
As per the comments mentioned in line method infolog.line() is deprecated and you need to use Global::infologLine();
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 1,140
André Arnaud de Cal... 762 Super User 2025 Season 2
Sohaib Cheema 706 User Group Leader