Developer forum

Forum » Ecommerce - Standard features » Send notification to different recipient

Send notification to different recipient

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a couple of custom notifications that I need to send, where the recipient of the email is different based on a setting on the user or the user allocation to a user group.

Specifically, I have users allocated to Sales agents. The users are assigned to user groups that are later added ass impersonation groups to the Agent user. Moreover, I have added a value in the standard field "Department" that connects the User with the Agent (just in case).

The users will place quotes in the system. I need to notify the corresponding agent everytime a user assigned to the agent will place a Quote and also everytime a user assigned to the agent places an order.

Another nice-to-have feature is to notify the Agent everytime a User creates an account using the Agent's code (the one that I store in the Department field).

What is the best way to accomplish these features?

Thanks,

Adrian


Replies

 
Jonas Krarup Dam
Reply

Hi Adrian,

The only way I can think of, is by implementing your own notification subscribers on OrderComplete (and possibly on userCreated), that looks at the user and the order type, and sends emails as needed.

If you ment for this to be a feature request, please post in the feature request forum :-)

Regards, Jonas

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Jonas,

Thank you for your response.

I will follow this path.

I don't think this should become a feature request because the use cases are pretty different and will open a wide range of comments around it.

Maybe a documentation/example on how to properly doing it with a notification subscriber would be more appropriate.

 Thank you,

Adrian

 
Martin Vang
Martin Vang
Reply

Hi Adrian,

Check out the API under the Dynamicweb.Ecommerce.Notifications namespace.

Most notification subscribers contain a short piece of example-code.

BR

Martin

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Martin,

Thank you,

I will do that.
Adrian

 

You must be logged in to post in the forum