How to prevent specific email notification in document library?

I've got the following scenario:
If metadata is changed for a document in my library I want email notifications to be send out. If the document itself is changed (which happens by a background workflow) the email notification (for changed elements) shouldn't be send out. When I'm talking
about notifications I mean user alerts which have been created for personal use.
When you use SPListItem.SystemUpdate() you can prevent the update mechanism to be executed. Is there something similar for SPFolder.Files.Add()? 
I've looked into writing an SPAlertHandler like this but I don't know how to catch this specific case.
If I execute Folder.Files.Add with DisableEventFiring, will the notification be send out anyway? I would be very thankful for any advice.
Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

Chitra,
you can have one record per affiliate in the custom table with Standard Text name and no of days and in your program based on the text name and no of days you should able to send notification also for locking the PO from approval the work item can be deleted(by program) so that the approver can no longer approve the PO.
Thanks,
Suresh

Similar Messages

  • Anyone know how to send automatic email notification in OA?

    Any where I can find a resource about how to send automatic email notification?
    say, samples, reference?
    please advice, thank you very much

    integrate your application with oracle workflow and send a notification from the mailer.
    details of working with workflow is there in the dev guide
    Thanks
    Tapash

  • Please how do I stop email notifications

    I have nothing in My Stuff>Manage email... I have all Preferences>Email... set to NO. The forum toggles say I am not receiving emails. But I am. Please make it stop. Is it possible that I have two adobe accounts under [email address removed]
    I am getting them from Premiere Elements forums. Please how do I stop email notifications?

    Unwanted Email notices - Several ideas (some overlap)
    -FAQ http://forums.adobe.com/thread/416458
    -and http://forums.adobe.com/thread/503132
    -and http://forums.adobe.com/thread/1017286

  • Error when email enabling a document library

    Hi - I've checked through other threads re errors when email enabling a doc library, but our scenario is a bit different. We have some custom code that creates sites based on a site template and uses data from a 3rd party system to define the site
    name, permissions etc. I don't think that the process for creating the sites is relevant to the issue, but mentioning that anyway to be complete. As part of the site creation workflow, one of the document libraries is email enabled. However, on one specific
    site, the document library was not email enabled. When I try and do this manually, I get the following error:
    Error in the application.   at
    Microsoft.SharePoint.SPList.UpdateDirectoryManagementService(String oldAlias,
    String newAlias)
       at Microsoft.SharePoint.SPList.Update(Boolean
    bFromMigration)
       at Microsoft.SharePoint.SPList.Update()
       at
    Microsoft.SharePoint.ApplicationPages.EmailSettingsPage.SubmitButton_Click(Object
    sender, EventArgs args)
       at
    System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
    sourceControl, String eventArgument)
       at
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint)
    Other tests/observations:
    On the problem site, I get the same error when trying to email enable other document libraries
    Other sites on the same site collection have been created using the same process/site template, and the appropriate document library was email enabled automatically (sites created both before and subsequent to this problem site)
    I have successfully managed to manually email enable a document library on an different existing site
    I have manually created a new site using the same site template and successfully managed to manually email enable a document library on that site
    So I am fairly certain that it is nothing to do with permissions as other posts relating to this issue have suggested. Does anyone have any ideas on what is happening, how to resolve or further checks I can make? Many thanks

    Hi qaaweb,
    based on my experience, the issue itself may be caused by some triggers, 
    the permission is one of them only, 
    to narrow down usually, we try to update credential first, that at some environment may less impact.
    example:
    based on: http://technet.microsoft.com/en-us/library/cc262947.aspx, to configure email, if already configured then skip.
    make sure that application pool account that is used for central admin to be the same for central admin, site and the web application.
    make sure SQL server and granted DBCreator , Serveradmin, Setupadmin on service account. 
    remove old database and sync:
    C:\program files\common files\Microsoft shared\web server extensions\12\bin>stsadm -o sync -listolddatabases 0
    C:\program files\common files\Microsoft shared\web server extensions\12\bin>stsadm -o sync -deleteolddatabases 0
    Update farm credentials, http://support.microsoft.com/kb/934838 
    if needed: central administration > Operation > Authentication provider and changed Kerberos to NTLM on central admin site.
    Login service account on the SharePoint server and enable IncomingEmail settings on the web application 
    please let us know if the workaround is not applicable
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to copy a folder from one document library to another document library ?

    How to copy a folder from one document library to another document library by programmtically?
    Samarendra Swain
    Team Sharepoint
    www.manuhsolutions.com

    You can use the SPFolder.CopyTo method.
    public static void CopyFolder()
    SPFolder folder = null;
    using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
    using (SPWeb web = site.OpenWeb())
    folder = web.GetFolder("shared%20documents/newfolder");
    folder.CopyTo("tester4/newfolder");
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
    certdev.com

  • How to grant anonymous access on sharepoint document library/list only not for web application

    Hello
    How to grant anonymous access on sharepoint document library/list only not for web application.I have claim based sharepoint site and has to be but i want to grant access on document library/list only.Is this possible?
    Thanks
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

    As i am using following code
    SPSite site = SPContext.Current.Site;
                SPWeb web = SPContext.Current.Web;
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    using (SPSite ospSite = new SPSite(site.ID))
                        using (SPWeb webs = ospSite.OpenWeb(web.ID))
                            // Enable anonymous access on web application
                            webs.AllowUnsafeUpdates = true;
                            SPUrlZone urlZone = SPUrlZone.Default;
                            SPWebApplication specifiedWebApplication = ospSite.WebApplication;
                            SPIisSettings iisSettings = specifiedWebApplication.IisSettings[urlZone];
                            //iisSettings.AuthenticationMode = AuthenticationMode.Windows;
                            iisSettings.AllowAnonymous = true;                       
                            specifiedWebApplication.Update();
                            // Get document library collection here and fetch all the document urls
                            SPDocumentLibrary docLib = (SPDocumentLibrary)web.Lists["Documents"];
                            if (docLib != null)
                                docLib.BreakRoleInheritance(true, false);
                                docLib.AllowEveryoneViewItems = true;
                                docLib.AnonymousPermMask64 = SPBasePermissions.ViewPages | SPBasePermissions.OpenItems | SPBasePermissions.ViewVersions
                                    | SPBasePermissions.Open | SPBasePermissions.UseClientIntegration | SPBasePermissions.ViewFormPages | SPBasePermissions.ViewListItems;
                                //docLib.AnonymousPermMask64 = SPBasePermissions.EmptyMask;
                                docLib.Update();
    Should working but getting access denied......i am totally stuck at this point.
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

  • How to send an email notification if no document in a library has been touched in 6 months

    The customer wants to receive an email notification if not a single document inside a document library has been not updated in 6 months. They don't want to get notifications based on single documents. They care only about the document library
    as a whole. I know you can use the list settings to send notifications or start workflows if a single document but how would you do this on an entire library?
    Get it?
    Is it possible?

    You could run something like this in powershell to check the last modified date and send an email if nothing has been modified in the previous 6 months.
    if (!(Get-PSSnapin Microsoft.sharepoint.powershell -ErrorAction SilentlyContinue))
    { Add-PSSnapin Microsoft.Sharepoint.powershell }
    $web = <website>
    $list = <document library>
    $items = ((get-spweb $web).lists[$list]).items | where {$_['Modified'] -gt (get-date).AddMonths(-6)}
    $folders = ((get-spweb $web).lists[$list]).folders | where {$_['Modified'] -gt (get-date).AddMonths(-6)}
    if (($items.count -eq 0) -and ($folders.count -eq 0)) {
    Send-MailMessage -SmtpServer 'smtpserver' -from '[email protected]' -to '[email protected]' `
    -Subject 'List items not modified in previous 6 months' -BodyAsHtml `
    -Body "List $($list) has not had any files updated in previous 6 months"

  • Email notification when Document status changes in Solution Manager

    Hi,
    Is there a way to send email notification to certain people if the document status changes in Solution Manager?
    For example: A notification email should be send to business user when development is complete.
    When development is complete, document is set with status 'Build complete'. As soon as this status is set, we want to notify business user to test the object. Similarly on other document statuses as well.
    Thanks in advance.

    Hi Vikky
    Check out doco 'How to: Automatic email notification' on service.sap.com.
    SAP Support Infrastructure > SAP Solution Manager > Information for VARs ASPs and AHPs > Setup Documents (SP15+)
    Thanks
    Daniel

  • How can i send email notification from UCM?

    Hi
    I am new to this technology. I need to send email notification to the user's, whenever file is checked-in. What is the procedure to send an email notification let us take GMAIL from UCM.
    1) Now I have installed UCM in my machine. Do I need to install any other software to implement this feature(sending email)?
    2) I read it in a document, that configuration is needed in a config file in order to send email. What details do i need to give in these fields,
    HttpServerAddress= ?
    MailServer= ?
    SysAdminAddress=?
    SmtpPort=25
    HttpRelativeWebRoot=/idc/
    CgiFileName=idcplg
    UseSSL=No
    WebProxyAdminServer=true
    3) Do I need to install any mail server? If so which software can i go with?? Is it possible to send email to gmail or yahoo acccount without installing mail server ???
    Regards
    Raj

    You will need to have an SMTP server of some sort that you can use. I think out of the box, you may only be able to use an SMTP server that allows anonymous sending or sending unauthenticated (e.g. an internal server). Any good SMTP server (that is not an internal server) would not allow this for security reasons.
    Thus, I think if you want to use an external SMTP server such as Gmail, you will need to write custom Java code. See this thread for more information: UCM SMTP server Configuration
    Jonathan
    http://jonathanhult.com

  • How to set up email notification

    Hi,
    How can I set up email notification in AV 10.2.3? I have gone through the admin and auditor docs but could not find any mention of it. Was not able to find the navigation on the AV console either. Someone posted a documentation URL link in the forum back in 2007 but unfortunately the link was broken. Can someone direct me to the email configuration page?
    Thanks.

    E-mail notification is not available as a feature in Audit Vault 10.2.3.1, the latest version available.
    However, it is possible to set up e-mail notification for alerts with some coding. Each alert raised by Audit Vault is placed on a queue in the repository. This is a standard Oracle Advanced Queue, and can be subscribed to using AQ APIs in PL/SQL or, with the JMS adapter, in Java. Once a subscriber is up and running, it will pick up any alerts that are raised and can route them to e-mail if needed.
    Sample code to do exactly this is provided in $ORACLE_HOME/av/demo/alert on the AV server.

  • How do I stop email notifications of changes to a shared calendar I subscribed to?

    I have subscribed to my sister's business calendar and I permitted email notifications of any changes she made.  How do I turn that off?

    Locking this thread, so any replies go to https://support.mozilla.com/en-US/forum/1/672706 :-)

  • How to create a Email Notification in SRM5.0 ?

    Dear SRM Experts,
    This is my requirement:
    Requirement: If Delivery date for a PO is approaching, system should send notification E-mails to approvers and PO initiators. Program execution and dates for notifications will be affiliate specific.
    Each affiliate should be able to define text for E-mail notification and number of days before delivery date when reminder should be sent.
    We need to send an email notification if Delivery date is approaching that is 3 days before delivery date,if no action is taken then
    PO needs to be locked .
    Kindly help  me regading the requirement.
    Thanks&Regards,
    Chitra

    Chitra,
    you can have one record per affiliate in the custom table with Standard Text name and no of days and in your program based on the text name and no of days you should able to send notification also for locking the PO from approval the work item can be deleted(by program) so that the approver can no longer approve the PO.
    Thanks,
    Suresh

  • How do I stop email notifications about a facebook account I don't have?

    Recently started receiving numerous emails to my iCloud account about a Facebook account that I don't have. How to stop these??!

    Pat,
    As I understand it, if I change all of my email preferences to "No," which I have already done as shown in the original post (above), I should stop geeting those email notifications. And, further, if that does not work I am to send a screenshot of the Notifications Preferences (above) and a copy of the "Reply to"  address of one of the emails that I am getting. I am having trouble doing that..
    I assumed that they did not want the "Do Not Reply to" email address. So I am sending what I hope is the Reply toaddress from one of your emails that I received:
    [email protected] I hope someone can use that to help me stop those emails.
    I have no idea how or why I started receiving this overwhelming number of emails in the past week.. I did not knowingly join any Forums or respond to any emails related to Adobe.
    When I browse under "My Things" I find that I am not subscribed to any Forum. So I really do not know what it is I need to change.
    I will appreciate any help you can give me that will stop these emails.

  • How Do I Disable Email Notifications For Discussions?

    I am following a couple of discussions and I would like to stop receiving email notifications when a new post appears... But for the life of me I cannot figure out how to do it! The Apple Support response I found via an Internet search appears to be for a previous iteration of the Apple Support Communities.

    Click here and turn off the email notifications.
    (117662)

  • How to shut off email notifications?

    Hi,
    How can I shut off new email notifications? I went to the Mail applicaion and  it doesn't have a shutoff feature for notification. Thanks.

    Go to
     > System Preferences... Notifications
    Click Mail in the left sidepanel, and uncheck 'Show in Notification Center' on the right.

Maybe you are looking for