Saturday, May 1, 2010

Trick for SharePoint 2007 event handler while working for synchronous events

Hi all, 

In one of the project, I have to develop a custom list schema with some metadata associated. The business needed the some kind of auto-renaming according to the company's guidelines when the user uploads a document. I thought it would easy to design and develop but it was pretty tricky at the end. I will a separate post on auto-renaming document filename.SharePoint

While developing I had to use ItemUpdating and synchronous event receiver. Subsequently, the "Title" has to be changed as well via properties.AfterProperties["Title"]. I had used some other metadata columns which worked perfectly fine during debugging. But, when it try set "Title" properties I always get an error. I tried properties.AfterProperties["vti_title"] and it actually worked.

Cheers, 
--aaroh    

Reference: 

No comments:

Low Code Reimagined with AI + Copilot Pitch Deck - Copy Copilot day (Virtual) - 2023

 Hi All,  I presneded a session at Pune UG on Low Code Reimagined with AI + Copilot Pitch Deck.  Video is at this address  https://www.youtu...