How to cancel resource event?

Hi,
I have configured the subscription service in my repository just for "on creation" event. I would like to know if is possible cancel the subcription when some kinds of documents are created in this repository. I have created a property metadata that the publisher checks when he or she wants to send the notificacions to the recipients.
Any idea?.
Best Regards
Manuel.

Manuel,
      If you don't want to write a code, you could use taxonomies. I mean, when a user upload a new document set the property metadata created by you. This metadata means if you want o not send a notifications about this event.
Using taxonomies, you need to create an index and this one has assign as data source your repository, you can create a new folder and classify documents by your metadata. 
Then, the system index and classify them documents whose metadata means sent notification.
Then you subscribe your end-users to this folder in taxonomies repository. Don't forget to enable repository services.
Patricio.

Similar Messages

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • Cancelled (detached) events showing on shared calendar - help!

    I can't figure out how to remove cancelled events from showing in iCal on a shared calendar. We use Zimbra for mail, etc. I subscribe to my boss' calendar and it is showing his cancelled (detached) events. They do not show in his iCal on his computer and they don't show in Zimbra. They only show in my iCal. I've looking in every preference I can find....I've tried un-subscribing to the calendar and then re-subscribing. Nothing seems to work. Any ideas??

    Consequently........it only seems to happen with recurring events we migrated from Microsoft Exchange. I cannot replicate it with a new appointment. I would still, however, like to be able to remove ones that are currently here. Since, they are recurring, they do show in the future, as well.

  • How to cancel messages in "Transfer to process engine" status

    Hi All,
    In our production env, few of the messages in SXMB_MONI are stuck with the flag "Transfer to Process Engine". I would like to know where I can find these message or how canI cancel these messages. I checked all the options in "SMB_MONI_BPE", but could not find my message.
    I want to find that message and cancel it out as I don't want it to consume server resources.
    Any help would be appreciated.

    ANy how if you want to delete those BPM runtime instance you can do so by deleting the logical instance of the BPM instance
    go to SXMB_MONI and click on PE which got stuck and it will take you PE engine go to list technical options and chose workflow log option and then chose delete logical instance option
    /people/michal.krawczyk2/blog/2009/03/18/xipi-bpe-admin--logical-deletion-of-a-process-instance
    Rajesh

  • How can I remove events from iCal?

    I send myself calendar invites (repeating weekly meeting invites)from Outlook from my office workstation, to my personal email address that I monitor on my iPhone.  These are typically .ics files.  Once I accept that event on my iPhone, then that event shows up on iCal.
    But if I cancel that event on my workstation, I get the cancellation email on iPhone, but the event DOES NOT get removed from iCal.
    How can I remove those events from the iPhone iCal app?
    Thanks!
    Vince in Leesburg

    thisone - Thanks for your response, but unlike most events, this one does not have an edit button before the Event Details screen. In the top right hand corner next to the words 'Event Details' there is just an empty space.
    This event is extremely pesky and I have repeatedly synced my phone in attempt to remove it. It was an invitation I accepted for a recurring weekly event, which was sent to an email address for my old job. That email address is no longer active and no longer existing on my phone, but this event continues to show up on my calendar every single Tuesday.
    Help?

  • How to cancel an a purchased subscription

    i have recently purchased adobe reader subscription but it didn't work i want to cancel the order and get refunded

    Hi parwiz Ahmad Noori,
    Happy New Year!  The resource below will explain how to cancel your subscription.
    Manage your auto-renewing subscriptions - Apple Support
    http://support.apple.com/en-us/HT202039
    Use your iPhone, iPad, or iPod touch to manage subscriptions
    From the Home screen, tap App Store.
    Tap Featured from the menu at the bottom.
    Scroll to the bottom of the page and tap your Apple ID. If you don't see your Apple ID, tap Sign In and enter your information. Then tap your Apple ID.
    Tap View Apple ID.
    If prompted, enter your password and tap OK.
    On the Account Settings screen, scroll down and tap Manage App Subscriptions. 
    Tap the subscription you want to manage, then choose a subscription category.
    Use the options to manage your subscription. You can choose a different subscription period, or turn off Auto-Renewal.
    Report a problem with an item purchased from the iTunes Store, App Store, Mac App Store, or iBooks Store - Apple Support
    http://support.apple.com/en-us/HT204084
    I hope this information helps ....
    - Judy

  • Canceling windowDeactivated event

    I'm writing a plug-in for ImageJ and operate on two images that are in seperate windows.
    The plug-in places pairs of markers on an image. I have implemented the WindowListener interface to capture the windowDeactivated event which checks if a marker pair is complete and if it's not asks the user if the placement should be cancelled.
    The event handler gets called as it should and I can display the dialog box and all but when a user wants to resume placing markers and not switch to the other window the event should be cancelled and focus reset on the original window.
    Resetting focus to the original window isn't that much of a problem but I can't cancel the event. After resetting focus the focus is then reset to the other window which I obviously don't want.
    I'm a little out of idea's since the consume method isn't available and I really don't know how to do this otherwise.

    Hi,
    I think your problem is the following: The event is only sort of a notification-event - this means it is not a signal that something will happen but a notification that something has happend (in your case the window lost the state of being the active window). So there is no need (it makes no sense) to cnacel or consume this event - this event is no reason for further system-actions like a key-event or a mouse-event.
    Your problem with re-gaining the focus has - in my opinion - the following reason: The system is at the moment when you get this event in the state that your window lost the focus (or the active-state) but the window which should gain the focus (from the point of view of the system) still hasn't got the focus. So after the actions of your listener are performed one of the systemactions will be to give the focus to the other window.
    That's the reason why setting the focus direct in your listener can't work. Normally it would help if you use the invokeLater-technique. This will guarantee that your work is done after(!) all the work the system has to do in this moment.
    HTH and greetings from
    Holger

  • How to cancel all alert email in WF_NOTIFICATIONS_OUT Queue.

    Hi,
    Could any body show how to cancel all the alert email present in WF_NOTIFICATIONS_OUT queue.
    We are running 12.0.4. i have seen Doc. id. 433359.1 Tracking Workflow Notification Event Messages.
    According to this before i can recreate the queue i need to process the alert emails.
    I do not want these alert emails to be processed since it is a clone instance. I want it to either go to a test email account or to be discarded
    completely.
    I know how to send it to test email account by using setoverrde address functionality in OAM. But for that to be set i need to start the mailer (which is currently down), if i start, it will start firing these pending alert emails in WF_NOTIFICATIONS_OUT.
    Kindly suggest.

    Hi,
    These documents talk about purgin WF_NOTIFICATIONS_OUT queue. But document i mentioned
    says.
    7. Try rebuilding the WF_NOTIFICATION_OUT queue if necessary
    The wfntfqup.sql script rebuilds the WF_NOTIFICATION_OUT queue by dropping and recreating
    that queue, removing pending notification messages from the WF_DEFERRED queue, and
    repopulating the WF_NOTIFICATION_OUT queue from the Oracle Workflow Notification System
    tables.
    Wfntfqup.sql Version >=115.9
    If you have implemented Oracle Alert and the WFNOTIFICATION_OUT queue contains any pending_
    alert e-mail messages, those messages must be processed before the queue can be rebuilt. The
    wfntfqup.sql script checks the queue for any alert e-mail messages and, if it finds any, the
    script returns an error message that specifies how many alert e-mail messages are pending
    and indicates that these messages must be processed before the script can run.
    Kindly suggest.

  • Can't fire cancelled editing event in a JTable

    Hi,
    I have a JTable and I'm listening to it's cell editor events editing canceled and editing stopped.
    When editing is stopped i verify the value of the cell and if it's not valid i throw a warning message, then select I the cell and turn its editing on in order to give user a new chance.
    It works fine, but, when I enter an invalid value onto a cell and press ok, then the warning pops up (as desired), i accept it and then I pres the Esc key, it just places the last value for that cell, which was the same invalid string (due to editing was stopped and I turned it on again), not even the "editing is canceled" event is called in order to place the last valid value for that cell.
    Don't know what I'm doing wrong since "editing stopped" event is working fine.
    Does anyone know how to fire the "editing canceled" event when Esc key is pressed?
    Thanks in advance!
    Edited by: raveko on Jun 5, 2008 7:05 AM

    I found the following way to force cancel editing event (or just treat the event here)
    Do you know a better way?
    Thanks!
    // Handle escape key on a JTable
    Action escapeAction2 = new AbstractAction()
    public void actionPerformed(ActionEvent e)
    if (table.isEditing())
    int row = table.getEditingRow();
    int col = table.getEditingColumn();
    table.getCellEditor(row, col).cancelCellEditing();
    KeyStroke escape = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false);
    table.getInputMap(JTable.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(escape, "ESCAPE");
    table.getActionMap().put("ESCAPE", escapeAction2);

  • How do i split events when Split Events Before Selected Clips is not even highlighted

    iMovie question - how do i split events when Split Events Before Selected Clips is not even highlighted?  I just puchased this new iMac yesterday and i am still trying to figure things out!

    You should start by having a read of the online manuals and correct forums.
    This forum is for iOS (iPads and iPhones).
    There are plenty of great resources on the Apple website,
    but try to search for iMovie Mac.

  • How to cancel project calculating?

    I have big project which calculated about 3 hours.
    Before the last calculation I set constraint for a summary task and started calculation (F9).
    Calculation is carried out and constantly show the mistake
    "This action is given causes the conflict of planning for a summary task...
    - To remove constrain for a summary task press OK
    - To cancel the action which caused the conflict press Cancel"
    I tried to press both Cancel and OK, but the mistake all the same appears. And so I press hour.
    How to cancel calculation?

    es3000,
    To find the version of Project, go to File/Help. In the middle on the right side of the screen, hit "Additional version and copyright information". The version number will include the service pack level. What is your version number?
    What exactly is "many tasks"? How many task lines are there? How many resources in your file?
    Also, do you have paste links in your file? If you created any hammock tasks, you will have paste links, otherwise you would have had to manually create paste links, so if you didn't do either of those, then you do not have paste links. Paste links can cause
    a file to calculate for a long time.
    Do you have predecessors/successors on summary lines? If so, restructure your network logic so you can remove links on summary lines.
    John

  • How to create the event in the report for jobs scheduling.

    Hi Experts,
    i have a requirement like as follows:
    The following triggers for Batch Jobs in the SCM system will be created.i.     
    Background Processing Event = u201CAPO Background Processing Eventu201D. After sending the Event, write a Log Report line u201CEvent u201CAPO Background Processing Eventu201D sentu201D.
    Could you please suggest me how we create the Event or which transaction ?
    Please give me a steps for creating events so that based on these events we use
    CALL METHOD cl_batch_event=>raise
        EXPORTING
          i_eventid                      = p_bpeve
          i_server                       = p_server
          i_ignore_incorrect_server      = p_ignore
        EXCEPTIONS
          excpt_raise_failed             = 1
          excpt_server_accepts_no_events = 2
          excpt_raise_forbidden          = 3
          excpt_unknown_event            = 4
          excpt_no_authority             = 5
          OTHERS                         = 6.
    Right now i received message "APO Background Processing Event" is doesn't exists.
    Thanks in Advance.
    Puneet.

    Hi Puneet,
    Goto transaction SM62 and in there to BckProcEvents tab. There you can create the events.
    You just need to specify the name and Description of an event.
    Hope this serves your purpose.
    Thanks

  • How to cancel an order if transaction not complete

    How to cancel an order if transaction not complete

    Presuming you're referring to a purchase from the iTunes Store, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store. Refunds are not guaranteed, but iTunes support should be able to help you in one way or another.
    Regards.

  • How to cancel an order or to remove one item, bought as a guest?

    how to cancel an order or to remove one item, bought as a guest?

    That does not help at all.
    Please explain.  Use sentences please.
    How do you buy something as a guest? 
    You have an iphone?
    You purchased an app?
    You don't want the app?  Simply delete it.  This is covered in the manual.
    If you do not explain what you are talking about, then it is very difficult to help

  • How to cancel excise invoice when mov type is 122

    Hello,
    We are creating the PO for one material. and make the GR for that material (material is Quality inspection material)
    so i,e the reason the material is goes to Quality inspection.
    Till then we are Made the J1IEX create the Part1 and Part2 entry.
    So in mean while in Quality all the material's are rejected so, now how to reverse the Part1 and Part2 entries.?
    How to cancel excise invoice when material is qulaity inpspection.
    What i made:
    Made the Return delivery means 122 mov doc and Try to cancell the excise invoice......but no successful
    Regards
    sapman man

    Hi
    Cancelling of excise invoice will be done in the following ways depending on the situation.
    Case 1:
    Create PO
    Do MIGO (create and post excise invoice)
    Create return delivery in quality inspection.
    Now we have to create a rejection inmvoice in J1IS with reference to the return delivery wherein the excise values gets reversed.
    If u try to reverse part 2 entries in J1IEX it will not come.
    Case2:
    Create PO
    Do MIGO (create and post excise invoice)
    Do cancellation of MIGO (102 mvt)
    With ref to vendor or internal excise invoice number just post the transaction. excise part 2 entries will get reversed. This will happen only if 102 entry exist for the PO line item.
    In a nutshell excise entries cancellation comes only if we cancel the material document. If we do return delivery then we have to create rejection excise invoice.
    Hope u get cleared in this regards
    Reg
    Raja

Maybe you are looking for

  • Flash Player does not load content

    We have a page that should load a video but it will not work on all browsers. It works for some users in the company on IE 9 but for some of the employees it will not load. It works fine on Chrome. We are on Flash Player version 14.0.0.145, Windows 7

  • MB_MIGO_BADI - Not able to bring data to screen fields

    Hi there, I'm trying to add a new tab in the item level in the MIGO screen. In the new tab, I am placing a custom screen with some fields containing purchase order details. I am using the BADI MB_MIGO_BADI for this task. Now I'm able create a new tab

  • Manual accurals for rebates.

    Hi, I have rebate agreement type which allows only manual accurals ( no need to create sales orders). But if i go to the condition record and try to post manual accural it gives me an error accural value exceeds 0.00 value. pls suggest any solution f

  • Color management problem-Photoshop 7

    Have been printing for years with no problems,  MAC G4, OS 10.4 to Epson 2400 using Photoshop 7 print controls.  Suddenly, the color of my prints are way off.  Soft proof in Photoshop looks good, printer preview looks like the bad print.  Reloaded th

  • Newsstand issue with Consumer Reports - IOS 8

    Installed IOS 8, now unable to access my Consumer Reports in the Newsstand.  I receive this message "Cannot Install Item  Please restart the app and download your purchase again" I closed the Newsstand. turned off the iPad Mini Retina.  Still the sam