Developer forum

Forum » Development » Notification subscriber on Extranet App

Notification subscriber on Extranet App

Andreas Pettersson
Reply

Hi,

Are there any subscriber when create profile gets posted from extranet app on a page? 

I need to do some custom code when a new user get posted from the extranet create profile app.

I have tried this but it does not seem i get here: Dynamicweb.Forms.Notifications.Frontend.OnAfterSubmitSave

Regards
Andreas


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

You can use the "UserSaved" notification subscriber.

BR Nicolai

Votes for this answer: 1
 
Andreas Pettersson
Reply

Is there anyway to see if it created from frontend or backend in that subscriber? 
Because when a user in frontend creates a new user i need some data of the current user who created the new user. But this data does not exists from backend, because it user specific for frontend. 
It seems that the approvalKey get remove from context.current.request on the page that goes to on approval URL.

Regards
Andreas

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

The user passed on the args will have a "IsNew" property that you can look at.

Also you can take a look at Dynamicweb.Environment.ExecutingContext and see if the request is frontend.

 
Andreas Pettersson
Reply

Thank you!

Regards
Andreas

 

You must be logged in to post in the forum