To pop up the warning message, the moment they logged into Epicor

After they login successfully. I wanted to create a BPM to set a warning message, stating that, you have logged into production and no transaction until we go live…Since we have 3 databases, our team may do some accidents in the production db, just to avoid that, would like to popup the warning message the moment they logged in. Please help how to do that.

image

It’s not exactly a warning message, but we use themes to indicate the environment.

3 Likes

Thanks Calvin, already I placed the themes but they are requesting for some pop up message after login. is that any way to do that?

You might be able to hack the “Top of the day”. Replace the source of tips with a single one stating the Environment. Then force Tips to be enabled.

2 Likes

A BPM on Ice.ShellLayout.GetHomePageForUser with a messagebox looks like it fires on log-in. You could use that, and set a variable to Session.AppServerURL.ToString() to find which appserver/db is logged into.

1 Like

Thanks Adam, can you please give me some steps for that BPM. I went upto get home page.

Regards
Subha

Now that I think about it a little more, you probably don’t need the Session.AppServerURL.ToString() part. If you are only worried about users doing transactions in the production environment, you can make just make this message BPM in that environment (the AppServerURL will always be the same anyway), and give some arbitrary/static message.

EDIT: one thing to watch out for is when you copy/restore the Production environment’s database into Test or Pilot, this BPM will start to fire there and may confuse users. This is where Session.AppServerURL.ToString() could help. You could use it to verify you are in Production when the message sends.

Thanks Adam, but when I am trying to save the static message BPM, its throwing the below error.

Oh yeah… I had to add a reference for some reason:

image

Adding the highlighted one should fix it.

Adam, i added references, it got saved successfully . I logged out and logged in but the Warning message didn’t pop up.
Thanks
Subha

Hmm, maybe that method isn’t getting called for you on launch for some reason. The way I stumbled upon that BO/method was by running a trace and then “changing user”. You could try that and see what BO’s/methods are being used, then try with one of those (a trace didn’t work for me when I completely closed epicor, restarted then logged in. I had to “change user” to see anything in the trace)

Thanks Adam. I got it but its appearing multiple times. how to make it warn only one time.
image

I think that GenXData.GetByID method gets called pretty regularly when opening stuff up. You may be able to add some additional conditions in the BPM using info from the dataset. Or you could try a different method from the trace.

ok Thanks Adam!! your support is much appreciated.

Regards
Subha

1 Like