Developer forum

Forum » Feature requests » First login in smart search

First login in smart search

Gerard Kocks
Gerard Kocks
Reply

Hi,

Is it possible to add ‘First login time’ to the fields in the smart searches?
We have a portal for our customer and we would like to know when a partner has logged in for the first time.

Best regards
Gerard

first_log_in.png

Replies

 
Gerard Kocks
Gerard Kocks
Reply

Hello,

We never received an answer on this one, can somenone tell me if this is possible or can be made?

Best regards
Gerard

 
Lars Larsen
Lars Larsen
Reply

Hi Gerard

I don't think a users first login is recorded in Dynamicweb. But you could do it using the API. Create a custom user field named "FirstLoginDateTime". And then use the notification subscriber "Standard.User.OnExtranetLogin" to check if the user who just logged in is a first time visitor (custom field "FirstTimeLoginDateTime" is already set). If so update the custom user field "FirstLoginDateTime". Custom user fields are available in user smart searches.

 
Gerard Kocks
Gerard Kocks
Reply

Hello Lars,

Thanks for your reply. We are going to consider it.

Best regards
Gerard