Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Dependant upon branch' field, mail sends to xx

We have a form in use in all divisions of our company

When completed, we want it to do an auto-mailsend dependant upon the 'branch' field contents...ie

If Bill from branch A completes, it is to mail to branch a recipient
If Bob from branch B completes, mail the form to branch b recipient

The branch field is a dialog list/editable field

What is the most straight forward way of accomplishing this?

thanks in advance again
0
Paulette
Asked:
Paulette
  • 2
1 Solution
 
zvonkoCommented:
The most straight forward way would be to create for every brunch a Group in your servers names.nsf
As group member you can put the one and only recipient in this brunch.
Your brunch field on the auto-mailsend form would serve then two purposes:
1.) As recipient SendTo content field
2.) As an indicator which brunch is concerned.

If you prefer not to edit your public address book for this, then you have to create this translation table at application database side. This would do the same. You create a view for documents containing two fields:
1.) Brunch
2.) Recipient
Before mail send you make a @DbLookup to this view and get the recipient.

I recommend to you the first approach.

Regards,
zvonko

0
 
ArunkumarCommented:
all yours zvo...
0
 
zvonkoCommented:
Paulette, have you found your way?
Or do you need more support?


0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now