using System;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.Workflow;
namespace Change_Title_Event.Change_Title
{
/// <summary>
/// List Item Events
/// </summary>
public class Change_Title : SPItemEventReceiver
{
/// <summary>
/// An item is being added.
/// </summary>
public override void ItemAdding(SPItemEventProperties properties)
{
properties.AfterProperties["Title"] = "Kevin: Changed by event receiver at" + DateTime.Now.TimeOfDay.ToString();
base.ItemAdding(properties);
}
}
}
Where simple example, which works perfect on my local Sharepoint 2010. It is sandboxed.
But when I package this solution, it do not work on Sharepoint Online. I does not give any Errors either.
I think I am doing something wrong, something simple, but I can't simply find anything on Google about it.
Here is another who asks on the MSDN forum, but gets a very wierd reply, that I do not understand. http://community.office365.com/en-us/forums/153/t/48868.aspx