Developer forum

Forum » Development » Dynamicweb.Modules.UserManagement.Notifications.UserSaved

Dynamicweb.Modules.UserManagement.Notifications.UserSaved


Reply
Hi,

I would like run some custom code when a new user is created through the Extranet-module.
I the good old days I would use:
Dynamicweb.Notifications.ExtranetExtended.User.Created

But it not working anymore after an update to 7.1 and convertion of users.

All I can check is when a user is saved:
Dynamicweb.Modules.UserManagement.Notifications.UserSaved

Not quite the same as created!?

Anyone with suggestions to make the notification work on "Created" only?

/Morten


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
There is a property on the user object called "IsNew". This property contains a boolean value indicating whether this user has been saved before. Checking this on UserSaved notification should give you what you need.

 

You must be logged in to post in the forum