Outlook rule to "run a script" on shared mailbox

C

Chris Bode

Hi there--

I have a need to execute some SQL Stored Procedures based on th
contents of email messages being delivered to a shared mailbox. I'v
written code and attached it to "ThisOutlookSession" and it works like
charm. The issue I'm running into is in creating a rule to run this cod
when messages from a specific recipient are delivered to this share
mailbox. I've created an Outlook profile with only this mailbox an
created a rule, but it doesn't fire when I try to run it on the message
in the inbox, which definitely meet the rule's criteria.

Is there maybe a better way to go about this? Ideally, a server-base
solution not requiring Outlook to be running would be fantastic. If
server-based rule could save those messages to a watched network folder
and spawn some other process to perform the SQL updates, that'd work
too, but I don't think that's possible.

Any pointers would be most appreciated...

==
Chri
 
M

Michael Bednarek

I have a need to execute some SQL Stored Procedures based on the
contents of email messages being delivered to a shared mailbox. I've
written code and attached it to "ThisOutlookSession" and it works like a
charm. The issue I'm running into is in creating a rule to run this code
when messages from a specific recipient are delivered to this shared
mailbox. I've created an Outlook profile with only this mailbox and
created a rule, but it doesn't fire when I try to run it on the messages
in the inbox, which definitely meet the rule's criteria.

Is there maybe a better way to go about this? Ideally, a server-based
solution not requiring Outlook to be running would be fantastic. If a
server-based rule could save those messages to a watched network folder,
and spawn some other process to perform the SQL updates, that'd work,
too, but I don't think that's possible.

Any pointers would be most appreciated...

A shared mailbox is just like any other mailbox, only many people can
access it, right? Well, that's how our shared mailboxes are set up.

I don't quite follow your description about what's working and what's
not working under what circumstances. If code fires and runs when it is
part of your ThisOutlookSession but doesn't run when the shared mailbox
is logged in and has the code attached to its ThisOutlookSession, then
the conditions to fire the code are not being met, or something really
weird is going on. You also forgot to mention which version of Outlook
and Exchange you are dealing with.

Have you researched Exchange server-side scripting? Exchange Web
Services (EWS)? CDO message sinks?
 
J

jefimhelp

A shared mailbox is just like any other mailbox, only many people can

access it, right? Well, that's how our shared mailboxes are set up.



I don't quite follow your description about what's working and what's

not working under what circumstances. If code fires and runs when it is

part of your ThisOutlookSession but doesn't run when the shared mailbox

is logged in and has the code attached to its ThisOutlookSession, then

the conditions to fire the code are not being met, or something really

weird is going on. You also forgot to mention which version of Outlook

and Exchange you are dealing with.



Have you researched Exchange server-side scripting? Exchange Web

Services (EWS)? CDO message sinks?

Hello,

Have you resolved this issue, as I am interesten in the resolution too. If you did please breifly explain how were you able to execute script on a shared mailbox?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top