Notifications
Announcements
No record found.
Hello,
We are on D365FO, 10.0.22 version.
Is there a way to put a Box info message on opening the d365FO application URL, Like for example on accessing the Production URL display Box info says "This is Production and everything is confidential".
Where to write my code if this is possible?
Thanks in advance!
Hi MSandy,
You may refer to the example to display a message in a modal dialog box by using the Box class,Although it is for ax, and also works for D365fo:
docs.microsoft.com/.../displaying-a-message-box
There are web extensions available which can give an additional marker on the page, depending on settings.
E.g. : chrome.google.com/.../gcjmehmhcfchpgfkkgbncjccgbfcajbd
The Chrome extensions can also be installed on the new Edge browser.
This would prevent a customization.
Thanks! But I would like to know the trigger point where I can write my code so that For PROD/UT, when user access I can say some Box Info like "this is UT/Prod".
Thanks for responding! This works but individually we need put in every user browser extension. We would like do add some code so that for every user this Box info appears.
Please suggest the trigger point if via coding this is possible.
You can hook into Classes\Info\startupPost method to run code (and show dialogs) when a new user session is initiated. Then you just need some logic in your code so that the dialog is triggered only when it's executed in a prod system - this can be achieved by calling URLUtility::getUrl().
I quickly tested to show a Box::info in startupPost method, but at least for me the dialog just get appearing again and again every time I closed it. So it was not usable. Most likely there's some way to make it work. Generally I think your users will complain if they have to close dialogs whenever they open D365 in a new tab/window, but that's up to your organization to handle.
Perhaps you can just tell them that everything in the prod system is confidential via email/training/something, instead of showing a dialog millions of times.
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 467 Super User 2025 Season 2
Martin Dráb 420 Most Valuable Professional
BillurSamdancioglu 241 Most Valuable Professional