Display Infobox every time the user log on

Hello community,

I have the following task: to show a window to the user with information (a warning about the confidentiality of personal information) during each login.

I tried to create a process that runs when a new entry is added to the "User session" object, but it has never triggered.

Please advise how to implement this task.

Thank you.

Sincerely,

Mariia

Like 0

Like

7 comments

Hello Mariia,

Do you see any errors in the console about "You're trying to decode an invalid JSON String". That task sends a message to the client using the ServerChannel. In 7.17.0 and 7.17.1 a change to the OmniChat broke this when a non-JSON message is sent, so it's possible you're seeing a side effect of that issue. *If* you're seeing that message in the console about "decode an invalid JSON string", I posted a fix you can implement in this thread: https://community.creatio.com/questions/new-bug - (I don't know for sure if that is the issue you're seeing - it could be that "User session" isn't showing a signal)

Ryan

Hello Ryan,

 

Thank you for your reply.

 

We are already aware of this error (we have made corrections in the code), so it is not related to our problem.

Our problem is that the process doesn't run on this trigger at all, because when a user logs in, the insertion into SysUserSession is done using Insert request, which causes the events not triggered.

 

Do you have any ideas on how to implement such a task?

Thank you.

 

Mariia

Mariia Prostiak,

Hi Mariia, did you resolve this issue?

Thanks

As Mariia says, the process which populates the User Session table uses direct inserts, so there will be no way to use that data event to trigger a BP.

 

I think the only ways to resolve this would be to either use C# for running some code on login as detailed in this article: https://customerfx.com/article/executing-code-in-creatio-application-and-session-start-and-shutdown-events/

 

Or to poll that table (or a similar one) with a scheduled BP and take action when a new user login is detected from the table, like what's described in this post by Vladimir: https://community.creatio.com/questions/triggering-business-process-after-successful-login

 

Note with the 2nd option that it would be run by Supervisor (or whatever your system user is set to) and not the user who logs in, so actions like in the question around sending a message to the user wouldn't work directly (they would all be sent to the Supervisor user) so the first option might be the better one for this use case.

Harvey Adcock,

Thank, this what I'm doing, but I want to know if 4 years after Creatio indicates this was in the R&D backlog, we have some news..

Agreed, that would be nice - something like a new start signal for BPs for "user session start". I would also be interested to hear if Creatio has anything developed or in the pipeline.

NCS.JulioFalcon,

You could use this approach if you wanted. See https://customerfx.com/article/executing-code-in-creatio-application-and-session-start-and-shutdown-events/

This allows you to wire up code to the session start of a user. 

Ryan

Show all comments