I have Pages Library of publishing web. In this pages library I have a content type that has a few custom fields.
When ever a page is created and checked in in this library I want to send out an update email to users. The function that sends the email returns an Id to track the mails sent.
I want to store this id to the one of the custom fields of the content type attached to this pages library.
If I use item checkingIn event then list item is available but when i update it gives error probably due to the fact that in synchronous item the item is not yet created.
If i use CheckedIn event then it executes after the file is checked in , in that case it gives error asking me to check out the file first and the update the custom field.
Please suggest the best way to update a field in document library in synchronous event handlers or in asynchronous event handlers in the simplest of ways.
I do not want to check out the file in asynchronous event programatically for just one field and then re check it in.