I have a remote event receiver attached to a Document Library. The er is attached to ItemAdding and ItemUpdating. The same code runs on both events to update values in several columns based on the URL of the updated item.
If a file is added or updated, everything works as expected. If a folder is updated, it also works.
When a folder is added, the er is triggered and processes everything successfully, returning a continue status, but my updates aren't being saved. I can then update the folder (a simple rename will work) to trigger ItemUpdating, and the same er is triggered again and this time my updates are saved.
I've attached a debugger and can watch the ItemAdding event run successfully without errors and all the values appear to be set correctly.
result.ChangedItemProperties.Add("Office", officeName); properties.ItemEventProperties.BeforeProperties.Add("Office", officeName); result.Status = SPRemoteEventServiceStatus.Continue; return result;