New answers tagged

2

This totally depends on your requirement. Please refer following points this will be helpful for your decision. If you need the ability to cancel the process, you should use Event Receiver. It is not possible to cancel the action(update/delete/add) in Workflows. If input is require from user or you need any kind of user interaction then you should go for ...


0

Workflow on ItemUpdated. For simple if conditions, a SP2010 workflow will work just fine. For advanced looping and/or API calls, then SP2013 workflow will be required. Avoid the Event Receiver if possible.


0

try with this: eventDate.ToString("s"), endDate.ToString("s")


0

I added Finally in your code. It will allow you to remove the lock used by the eventreceiver in few seconds. As it is the default behavior of SharePoint that if you create an item in Task list than it will put the lock on the item & the list will not be accessible while it is locked. The code written in the Finally will release the lock from the list &...


0

I was wrong. This EventReceiver are firing correctly - It was only a debug mistake from myself. 1.) Where is the HTA dialog? Services do not have GUI. This were a stupid idea from myself; 2.) But, the ".ctor" HTA dialog was showed as well. I think its because the e.Update(); line was being executed by the Console Application process in an Visual ...


0

You will need to separately associate the Add, Delete and Update event receivers to the list, by passing appropriate parametric values to the code below - list.EventReceivers.Add The Add method for event receiver takes following parameters - public void Add(SPEventReceiverType receiverType, string assembly, string className); Note - Adding event ...


0

You can make publish copy of your solution and put .wsp files from bin folder of publish copy to your another SharePoint server and deploy there with PowerShell Script using following command Install-SPSolution -Identity <solution.wsp> -WebApplication <name or guid of web app> -GacDeployment Refer this link for more detail.



Top 50 recent answers are included