eventreceiver

how can I add event receiver only for list with specyfic template id

﹥>﹥吖頭↗ 提交于 2019-12-21 12:41:13
问题 I'm adding ItemAdding event receiver for custom list template. Both event receiver and list template are deployed by the same feature. Also the same feature creates List Instances. The problem I've got is that the event is fired for each list item in site to which it was deployed. Elements.xml for eventreceivre is: <Receivers ListTemplateId="10200"> <Receiver> <Name>ListEventReceiverItemAdding</Name> <Type>ItemAdding</Type> <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly> <Class

Invoke SharePoint Workflow after EventReceiver

筅森魡賤 提交于 2019-12-08 18:58:27
i got a question regarding sharepoint workflows and event receivers. i got an event receiver that is setting metadata on an element. after that, i use a workflow to copy item metadata to a list. unfortunately the workflow does not copy the metadata set by the event receiver. i think because it is executed before the event receiver. is there a possibility to change the order, so that the workflow will execute after the event receiver? the receiver ist bound to the ItemAdded and ItemUpdated Events i a syncrounous manner. Thank you for your help! Patrick You can use SPWorkFlowAssociation to run

Invoke SharePoint Workflow after EventReceiver

点点圈 提交于 2019-12-08 09:19:38
问题 i got a question regarding sharepoint workflows and event receivers. i got an event receiver that is setting metadata on an element. after that, i use a workflow to copy item metadata to a list. unfortunately the workflow does not copy the metadata set by the event receiver. i think because it is executed before the event receiver. is there a possibility to change the order, so that the workflow will execute after the event receiver? the receiver ist bound to the ItemAdded and ItemUpdated