Solved

How to give users a notification (at start-up)?

  • 28 February 2022
  • 4 replies
  • 141 views

Userlevel 4
Badge +11

 :loudspeaker: How to give users a (one-time) notification?

For example:
With the current situation in Russia and Ukraine, we want to alert colleague about deliveries in these countries. The user should indicate that they have read this notification so that it will not be displayed again next time.  


I was triggered by the SF message you get as a developer after performing an upgrade. 

 

icon

Best answer by Mark Jongeling 28 February 2022, 12:05

View original

4 replies

Userlevel 7
Badge +23

Hey Dennis,

What you can do is create a checkbox in your end product that holds the value 0 or 1, 0 being that the specific user has not seen the notification and 1 being the user has. 

As Start object for each user, it can be a Task. This task is a Starting point of a process flow. The task doesn't need to do anything. There should be a process procedure after this Task deciding it should continue the flow or stop based on the "have I already shown this message”-checkbox.

 The Task is followed by the message you want to show. You can choose to have the message have multiple message options but if it's just a one-time throw, you can set a process procedure after the Message to set that checkbox to 1; to indicate the user has seen it. 

Hope it helps!

Userlevel 4
Badge +11

Hi Mark,

Your suggestion to execute this as a start object is a good one. Also your principle of a process flow where you convert a value. At what level would you recommend capturing this? 

The best would be to control this from your IAM users since a logged in user will be here at all times. 

 

IAM | Users > Master data > Tags

 

 

Userlevel 7
Badge +23

That could work, for instance via the use of an Application connector. You can then set-up a SQL query to run on the IAM application to update the value of this tag. Making use of dbo.tsf_user() you can find the logged in user inside IAM and update the tag's value.

Userlevel 6
Badge +10

@Dennis van Leeuwen @Mark Jongeling We use a Task Start Object to display Release Notes (this works for the Universal GUI at least). We actually have a more simple solution, which only involves a Task and no Process Flow. I think that would also be more plain and simple for your use case as well

We use a Task with a Task procedure and a Layout and Default procedure:

  • The Default procedure retrieves the message to be displayed from a table in which the message is specified
  • Upon Task Execute the message is marked as Read for the tsf_user
  • The Layout procedure will set all Task Parameters to Hidden if message is marked as Read for the tsf_user, as a result the Task pop-up will not show upon next startup of the GUI

Reply