web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to put a Box info message on opening the d365FO application URL

(0) ShareShare
ReportReport
Posted on by 219

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!

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: How to put a Box info message on opening the d365FO application URL

    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.

  • MSandy Profile Picture
    219 on at
    RE: How to put a Box info message on opening the d365FO application URL

    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.

  • MSandy Profile Picture
    219 on at
    RE: How to put a Box info message on opening the d365FO application URL

    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".

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    297,933 Super User 2025 Season 2 on at
    RE: How to put a Box info message on opening the d365FO application URL

    Hi MSandy,

    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.

  • Verified answer
    huijij Profile Picture
    19,811 on at
    RE: How to put a Box info message on opening the d365FO application URL

    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

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 814 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 798 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 622

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans