Monitoring a mailbox for specific fields

Is it possible with PowerShell to monitor a mailbox in Outlook 2010 and if an email comes in with specific content (i.e. subject, sender, body), take those fields as variables and do something with them? The maibox would have to be monitored in real-time
so they're picked up as and when the emails come in and not periodically. I was planning on creating a SQL query with the variables but that's something I'm only just getting into and this'll be a long term project for me, not a quick script.
Thanks in advance.

Hi AJ Mellor,
If you want filter emails in outlook with powershell, please refer to the script below:
$olFolderInbox = 6
$outlook = new-object -com outlook.application
$ns = $outlook.GetNameSpace("MAPI")
$inbox = $ns.GetDefaultFolder($olFolderInbox)
$targetfolder = $inbox.Folders | where-object { $_.name -eq "subfolder name"}
$email = $targetfolder.items |Where {($_.SenderName -eq "sender name") -and ($_.subject -eq "all subject")}
if($email){
#do SQL query
To monitor in real-time, you can schedule the script above in task scheduler:
Weekend
Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script
I hope this helps.

Similar Messages

  • Define read-only authorization for specific field(s) on a form for 11.5.9

    Dear all,
    Can you pls let me know how is it possible to define read-only authorization access for specific field(s) per responsibility / user on a form in 11.5.9?
    For example I want to protect the item master file by assigning for example to users with responsibility buyer authorization to modify the buyer information but to have read-only only authorization on other sensitive fields such as make/buy flag, expense accounts, etc
    Through UI Modeller I have only managed to make specific fields on specific forms invisible, or whole tabs invisible, to specific responsibilities but this does not cover my needs as I want them to be able to view the data of the fields but to not be able to update them

    Arun,
    Almost but not quite.. The example you've given has the person VO at the top level which includes all the id's (City, State etc). My use case is slightly different.
    query 1
         select org_id, OrgName from x;
    query 2
         select emp_id, emp_name from y where org_id = x.org_id
    query 3
         multi-table join (approx 9 tables) to retrieve depts associated to employee
         where org_id = x.org_id
         and emp_id = y.emp_id
    Rather than using LOV's would it be better to create VO's and pass in the bind parameters at run time?

  • Problem with matchcode in alv for specific field

    Hi,
    I have created a customer specific data element ZE_CONFTYPE, with a customer specific domain, and in this domain I have defined a value range with 3 possible single values (partial, final, automatic).
    Later, I have defined a field: CTYPE type ZE_CONFTYPE, and I'm showing this field in an ALV.
        it_fieldcatalog-fieldname = 'CTYPE'.
        it_fieldcatalog-seltext_m = 'Confirmation Type'.
        it_fieldcatalog-col_pos   = 4.
        it_fieldcatalog-edit = 'X'.
        APPEND it_fieldcatalog.
        CLEAR it_fieldcatalog.
    Now I was hoping that a matchcode was going to show up in the ALV with the 3 possible values for this field, but apparently I was wrong. What should I do for this matchcode to show up?
    THX!

    Then you may need to use
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program       = repid
                i_callback_user_command  = 'CALLBACK_FOR_DETAIL'
                is_layout                = is_layout
                it_fieldcat              = ct_fieldcat
           tables
                t_outtab                 = g_itab.
    You need to write code in "callback_for_detail" with fm F4IF_INT_TABLE_VALUE_REQUEST
    or
    Create a structure with the field you mentioned and give structure name as ref_table and field name as ref_fieldname

  • O365 EWS API - search one or more mailboxes for specific email, check if read?

    Howdy All - 
    Can anyone point me as to how you can search a single or multiple mailboxes for a specific email by sender or subject to find out if the email was read?
    I have scoured the net and can not find anything related to this for O365 or even Exchange 2013.
    Thx!
    Domran

    You could use EWS to search mailboxes.
    https://msdn.microsoft.com/EN-US/library/office/dn579422(v=exchg.150).aspx. You can easily check the
    IsRead property on mail items.
    However, I would point out that finding out if a mail is read is somewhat troublesome. How do you know a mail was read? If it is marked read? Users can toggle the read/unread state of a message, so that's kind of unreliable. You can also right-click a folder
    and choose "Mark all as read", without ever actually reading the message. So depending on what you're trying to do, this may not be something you can programmatically determine.

  • Devices no longer sync mailbox for specific user

    I have an Exchange 2010 environment running ActiveSync. We have started to enroll devices using Xenmobile which pushes out a mailbox configuration for the users to connect to their mailbox. Everything is working fine with the exception of one user so far.
    This user's prior iPhone was working fine and then stopped connecting with no apparent reason. He decided to buy a new iPhone 6 thinking that it would work and he would just ignore the issue on the old iPhone. The new iPhone is unable to sync as well. The
    iPhone meets our compliancy checks by Xenmobile and when he is prompted to enter in his password for his Exchange (Windows) account, it appears to accept it just fine. However, mail is never synced. We can see that his device and user credentials are
    connecting to ActiveSync in the IIS logs. We have tried disabling/enabling ActiveSync on his mailbox multiple times. I can see that a device is not showing up under his domain account within the ExchangeActiveSyncDevices container. I tried deleting the
    container altogether and it is not recreated when he tries to connect. We also have verified that another user can enroll with his iPhone and receive mail just fine, so that rules out any issues with the device itself. It really narrows it down to this particular
    user. The permissions on his domain account looked to be the same as everyone else. We are running out of ideas. We do not want to resort to recreating his mailbox since that will take quite a bit of work to backup and restore all of his mail. Any ideas are
    appreciated. Thanks.
    Update: Using the Test-ActiveSyncConnectivity powershell cmdlet, I verified that his account is able to create an ExchangeActiveSyncDevices object for the Test object.
    Update 2: I was told that this particular user is unable to sync his mailbox from another device that was tested from. This seems to point the issue to his mailbox configuration, but we don't know what else to look for other than trying to disabling/enabling
    ActiveSync. I updated the thread title to reflect that it is not just his iPhone.

    So I spoke with the Exchange admin working on the issue. He did not setup a test as I previously requested. He took Xenmobile out of the mix but still had the connection going through a Citrix Netscaler appliance, which everyone is going through.
    They performed a new test by setting up the device to connect directly to the mail server and it worked; mail was able to sync. This tells us that the problem is with something being caught at the Netscaler. In addition to Xenmobile, the Netscaler
    as its own connection policies that permit a device from even getting to Xenmobile. It must be getting dropped by that policy, even though the device worked for another user and no one else has reported any problems.
    At this point, it must be an issue with the Netscaler, so there is no need for further investigation on the Exchange side. Thanks.

  • Reset button for specific field

    I am using LCD 8.0
    I have create a form with an image field object so when a user clicks to be available to insert a photo.
    How I can create a button with a script, so a user can reset ONLY the image field if by mistake have insert the wrong photo!
    Thanks

    please tell me if you find this answer, im having the same problem.
    i will do the same if I find out.
    thanks
    [email protected]
    Alex.

  • Access level to users at specific fields

    Dear Techies,
    I am new guy In BO and also to this forum icon_smile.gif
    I am designing my universe and now i little concern
    I want to design one universe for 5 departments in company
    and then i want to give specific rights for users for specific fields in the universe level
    any best way / solution there...
    any suggestion / help / link / tutorial would be highly appreciated
    regards
    Nadir Firfire

    Hi,
    You can deifne metadata restrictions for group of users in the universe.
    In Universe Designer, select the "Tool" menu then the menu option "Manage Security" and finally menu option "Manage access restrictions".
    Then click on "New" button to create an access restriction and select the "Object" tab.
    Last you have to associate the restrictions to users or group of users.
    Didier

  • JSF Table StyleClass issue for a specific Field inside the Table

    Hi There,
    Am having an issue of dynamically setting the styleClass for a specific field inside a DataTable. Here is how the JSF code is ..
    <h:column>
    <h:panelGrid id="column4" columns="1" cellpadding="0" cellspacing="0">
    <h:inputText id="numberOfApps" value="#{row.submitNumber}" styleClass="#{row.customStyleClass}" maxlength="6" converter="MyNumberConverter" />
    </h:panelGrid>
    </h:column>
    This Table has a specific column which has a input Text Box where user enter's data. This data will be validated in the bean where in after the validation if its exceeding a limit we should throw an error message and also highlight the field with a specific styleClass.
    I am setting the StyleClass dynamically based on the User Input, so that I can display a highlited Error Field on the screen. Strangely enough, styleclass is getting set as expected for the first submit but doesnt show any styles for further submits. Even the existing style is getting removed from the second submit onwards. I am setting this "customStleClass" dynamic parameter as a Bean Property. Am sure these values are properly set coz to make sure I have put an h:output tag inside that table to display the customStyleClass values and they are getting set as expected but I see blank value for the class="" in the source of the Page.
    Any help would be appreciated.
    Thanks
    Edited by: Lalith on Jan 14, 2008 10:23 AM

    One option is you find the data element of that field GUID.
    Now go to SE11 transaction and in data type put that data element and press where used list. In that select tables.
    This will give you a list of tables where that field is used.
    But again if there are lots of them it will be difficult to find.
    The only option in that case is debug the extractor and find out.

  • Searching for values in a specific field using REST Search

    To conduct a Search using REST...you only have the querytext parameter which searches all fields. How can I search within a specific field using REST?
    Brian

    You can use the following code as an example to post a query. The example shows how to search against the title managed property. It also shows you how to bring back certain properties for viewing and refiners. You can also do the same with a GET.
    function executeRESTSearch() {
    var appweburl = _spPageContextInfo.webAbsoluteUrl;
    $.ajax(
    'url': appweburl + "/_api/search/postquery",
    'method': 'POST',
    'data': JSON.stringify({
    'request': {
    '__metadata': {
    'type': 'Microsoft.Office.Server.Search.REST.SearchRequest'
    'Querytext': 'title:whatever',
    'Refiners': 'title,created',
    'SelectProperties': { 'results': ['created','path'] },
    'SortList': {
    'results': [{
    '__metadata': {
    'type': 'Microsoft.SharePoint.Client.Search.Query.Sort'
    'Direction': 1,
    'Property': 'created'
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data.d.postquery.PrimaryQueryResult.RefinementResults.Refiners.results[0].Entries.results[0].RefinementValue;
    'error': function (err) {
    alert(JSON.stringify(err));
    http://msdn.microsoft.com/en-us/library/office/jj163876(v=office.15).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How to find user exits for a specific field

    hi,
        How can we find a user exit for a specific fields .
    as i know Three ways to search user-exits
    1. SE80 look includes in a packages with name user-exits
    2.  by zreport which will fetch user-exit in a T-CODE
    3. SMOD
    but what if we have to find a user-exit for particular field for e.g bupla(bussiness place) in MIRO.
    Please suggest me.
    Thanks and  Regards ,
    Rahul Singh.

    Hi Rahul,
    Here is the procedure to create field exits.
    Step by step procedure for creating Field Exits
    There are eight steps to creating a field exit:
    Step 1: Determine Data Element
    Step 2: Go To Field Exit Transaction
    Step 3: Create Field Exit
    Step 4: Create Function Module
    Step 5: Code Function Module
    Step 6: Activate Function Module
    Step 7: Assign Program/Screen
    Step 8: Activate Field Exit
    Step 1: Determine Data Element
    u2022     Before you can begin adding the functionality for a field exit, you must know the corresponding data element.
    Step 2: Go To Field Exit Transaction
    u2022     The transaction to create field exits is CMOD.
    u2022     You can use the menu path Tools -> ABAP/4 Workbench -> Utilities -> Enhancements -> Project management.
    u2022     From the initial screen of transaction CMOD, choose the Text enhancements -> Field exits menu path.
    u2022     After choosing this menu path, you will be taken to the field exits screen. From here, you can create a field exit.
    NOTE : Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.
    Step 3: Create Field Exit
    u2022     From the field exit screen of transaction CMOD, choose the Field exit -> Create menu path.
    u2022     After choosing this menu path, a dialog box will prompt you for the appropriate data element .
    u2022     Enter the data element name and click the u2018Continueu2019 pushbutton.
    u2022     Now, you will be able to create the function module associated to the data elementu2019s field exit.
    Step 4: Create Function Module
    u2022     You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the u2018Continueu2019 pushbutton.
    u2022     In the u2018Function moduleu2019 field, a function module name will be defaulted by the system based on the data element specified. This name will have the following convention:
    FIELD_EXIT_<data element>
    u2022     You can add an identifier (an underscore followed by a single character ).
    u2022     The first function module for a data elementu2019s field exit must be created without an identifier.
    u2022     To create the function module, click on the u2018Createu2019 pushbutton, choose menu path Function module -> Create, or press u2018F5u2019.
    u2022     After choosing to create the function module, you will get the warning: "Function module name is reserved for SAP". This message is just a warning so a developer does not accidentally create a function module in the field exit name range. By pressing u2018Enteru2019, you will be able to go ahead and create the function module.
    u2022     Before coding the function module, you will have to specify the function modules attributes -- function group, application, and short text.
    Step 5: Code Function Module
    u2022     From the function moduleu2019s attributes screen, click on the u2018Source codeu2019 pushbutton or choose the Goto -> Function module menu path to the code of the function module.
    u2022     Here you will add your desired functionality for the field exit.
    u2022     Remember that field exitu2019s function module will have two parameters -- one importing parameter called "INPUT" and one exporting parameter called "OUTPUT". These parameters will be set up automatically by the system.
    u2022     You must remember to assign a value to the OUTPUT field. Even if the value does not change, it must be moved from the INPUT field to the OUTPUT field.
    Step 6: Activate Function Module
    u2022     After coding the function module, you must remember to activate it.
    u2022     Use the Function module -> Activate menu path to activate the function module.
    u2022     At this point, you can return to the field exit transaction.
    u2022     You should be able to 'green arrow' back to this transaction.
    u2022     When you return to the field exit transaction, you will see an entry for the newly created field exit.
    u2022     At this point, the field exit is global. That is, it applies to all screens that use a particular data element. On any screen that uses the data element, the corresponding field exit function module will be triggered, once it is active.
    u2022     Also, the field exit will not be triggered yet because it is inactive.
    Step 7: Assign Program/Screen
    u2022     This step is only needed if you want to make a field exit local.
    u2022     To make a field exit local, select the field exit and click on the u2018Assign prog./screenu2019 pushbutton.
    u2022     In the dialog box , indicate the appropriate program name and screen number.
    This information indicates that the field exit is local to the specified screen in the specified program.
    u2022     In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier in the u2018Fld. Exitu2019 field.
    u2022     If this field is left blank, the function module triggered will be 'FIELD_EXIT_<data element>'.
    u2022     If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT_<data element>_<identifier>'.
    Step 8: Activate Field Exit
    u2022     The field exit must be active for it to be triggered by the system.
    u2022     Activate the field exit by choosing the Field exit -> Activate menu path.
    u2022     After assigning the field exit to a change request, its status will change to u2018Activeu2019 and it will be triggered automatically on the appropriate screen(s).
    NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers
    Execute the transaction SE38 with PROGRAM NAME - RSMODPRF
    Then give the Data Element Name for which field you want to create the exit(Just cross check with your field data element) and execute.
    then it takes you to SE37 with the function module name FIELD_EXIT_<DATA ELEMENT NAME> and then create the same function module.
    and in the coding part, You can write your logic to display the output of that field. and activate it.
    once you complete the above,
    Again execute SE38 transaction with program RSMODPRF and again click on Execute button without any Data Element Name. Now you select the data element which you have created and click on Assign prog/ Screen button and assign the program name and screen number of the filed and click on the menu Field Exit and Activate.
    Hope it helps.
    Regards
    Radhika
    Edited by: Radhika Pande on Nov 26, 2009 7:58 AM

  • Help to create a monitor for specific non-windows ID generated by script

    Hello all,
    Do you know how to create a monitor for specific event ID (4,5,6,7 & 8) in SCOM (with alerts) I know how to create a monitor but not how to create it for specific servers. I would like to copy those monitors in the Management Pack that I override (because
    the original was locked).
    Thanks for your help.

    Hi,
    you can create new DISABLED monitor in new management pack.
    After that you will enable this monitor for specific servers using overrides.

  • How to find what are all the rules and events are monitoring for specific server in SCOM 2007

    how to find what are all the rules and events are monitoring for specific server in SCOM 2007.
    I need to know what are all the events, services, and rules are monitored for the specific server.
    Kindly help me friends.

    how to find what are all the rules and events are monitoring for specific server in SCOM 2007.
    I need to know what are all the events, services, and rules are monitored for the specific server.
    Kindly help me friends.
    Thanks for the question Sandoss. This is something that we all come across at sometime.
    Thanks & regards, Sumit Agrawal
    The lack of this feature is an inexcusable oversight for an enterprise management product.  They have some serious lightweights making design decisions on the SCOM team. 5 thumbs down. 
    BTW the answer is probably LOTS of stuff. Literally 100's of workflows are running on any server. 
    The following OpsMgr DB query will list all running monitors on a server. Change the name of @srv. I think this works pretty well.  I'd like some feedback if something is missing.
    DECLARE @srv varchar(30)
    SET @srv = 'your name here'
    SELECT mon.displayName as monitor, bme.FullName,bme.DisplayName as object,
    case
        when s.HealthState = 1 then 'healthy'
        when s.HealthState = 2 then 'Warning'
        when s.HealthState = 3 then 'Critical'
        else 'N/A'
    end as Health
    FROM state AS s WITH (NOLOCK)
    left join BaseManagedEntity as bme WITH (NOLOCK) on s.basemanagedentityid = bme.basemanagedentityid
    left join dbo.MonitorView Mon WITH (NOLOCK) on Mon.ID = s.monitorid
    where
    bme.FullName like '%' + @srv + '%'
    and s.HealthState <> 0
    and mon.IsInternalRollupMonitor = 0
    and mon.IsExternalRollupMonitor = 0
    order by bme.DisplayName, mon.displayName

  • Delta-Specific Field for Generic DataSource

    Hi,
    I have defined a Generic DataSource for Transaction data on R/3-Side.
    This DataSource is based on View/Table EKKO (Purchasing Document Header) for some specific customer requirements. Delta-Specific Field is AEDAT (Calend. Day). Safety Interval Upper Limit is set 1 Cal. Days. No Safety Interval Lower Limit has been defined. "New Status for Changed Records" has been marked.
    When we see this DataSource in Extractor Checker (RSA3), this data source
    Extracted all delta data where AEDAT is not blank.
    When I see the content of table EKKO, I can find few records where AEDAT is blank.
    These records are missing in Extractor Checker.
    How I can solve this problem? Which delta-specific field can be used in
    this generic Datasource? Should I define an additional Generic DataSource with
    Delta-Specific Field BEDAT (as BEDAT is filled when AEDAT is blank in table EKKO)?
    Thanks for the answer.

    Delta based  on calday wont pick all the records  which are recently posted and you can not run the delta more than one time in a day ,end of the day only you can run the delta.
    Set the delta as Tme Stamp and specify the Upper  limit to 5 minuts.
    We can run the delta no. times and pick the documents posted in short interval of time.
    With Regards,
    Kishore.

  • Delta Specific Field for LTAP

    Hi guys,
        I tried using Field EDATU – Date of Pick Confirmation (First Step) as Delta - Specific Field for one of my View Datasource on Table LTAP.
        However no DELTA's recieved for the past one month
        Can someone suggest another field in table LTAP that I can use.
        Thanks

    Hi Chris
    I have the same issue and have not found a suitable field. Now I am doing a full load with a routine selection on a combination of QDATU and EDATU into an DSO and have a delta from the DSO to the cube. If you get sorted with teh delta, please post the solution...
    Cheers
    L.

  • Version Specific fields For Product

    Hi SCM experts,
    I have a requirement where in i need maintain Product description as a version specific field . But as a standard , it is not. What i actually need is, I should be able to maintain different descriptions for different versions of a Product.
    Is this possible through any customization or any user exits exist for the same. Please do let me know if this is possible or not.
    Thanks a lot for all your help.
    Regards,
    Deepthi lakshmi.A.

    Hi
    1.First create a Change Note number using T code CC01,without release key and give the Change note number Description(Different Version for a single product) and give the valid from date as System's date,change no status as 1,and press enter and put tick marks in the first nd third column against material row.Press Save
    2.Use the above created Change note number and do some changes for a material,i.e include some revision level.in Basic Data 1screen of the material.
    3.You cannot use the same change note number for more than one revision level.For Eg.Using a change no 500000000112 you have inluded revision level A,and saved it.Now again using the same Change note no u cant include revision level B for the same material.
    4.In this way you be in need of different change note numbers to include new revison levels for the same material,and u can give the description while creating the change note number.
    Please give me a feedback whether it works properly or not.
    I hope this will help u.If useful plz reward your points.
    If i'm wrong experts please correct me.
    Regards
    Karthik
    Message was edited by:
            Karthikraj
    Message was edited by:
            Karthikraj

Maybe you are looking for

  • Field in extractor

    Hi Gurus We need ZGOODSREC in R/3 DEV datasource, this field is available in R/3 sandbox datasource so i checked SE38 in R/3 sandbox and found the code so will copy that code and add it in SE38 on R/3 DEV . But when I try to add this code system is s

  • Artifacts, burned in pink colored lines

    Hi. At my studio we have been having a big problem on a select few computers with Photoshop CS6 and earlier versions. When we open a file sometimes, randomly there will be a streak of color in the file that we did not make. Once this appears, it is b

  • Will upgrade to mac pro 2010 give huge improvement from mac pro 2006?

    I asked in an earlier post but may not have been clear. Basically, if I upgrade to a new mac pro 2010 quad core 2.8 GHz (12GB ram) will it give me a huge improvement from a mac pro 2006 2.0GHz (with 5GB Ram) and thus reduce the need to render and the

  • How can I generate portal report that give list of iviews-roles-users

    Hello, I need to generate a portal report that will list all roles and iviews that assigned to them. iviews can be assigned direclty or trough worksets/folders/pages. Is there a way I can create such a list? Is it requires development? If so, Is anyb

  • Facebook Birthday Reminders - Don't Dismiss

    I've got my playbook configured to add Facebook Birthday reminders to the local calendar, which it seesm to have done fine, with the default reminders being set for 2 days before. This is fine and I get the reminders on schedule, however when I Dismi