Posted on:
Categories: SharePoint
Description:

​Sorry folks, it is not possible as far as I know. You cannot use EventFiringEnabled as it is not supported in remote event receivers. There is a way to work around it though.

Let's say you register remote event receivers for item added and item updating. In item added, you would like to update a field and skip your custom item updating processing. What you could do is to put in the following check at the beginning of item updating.

 

if (itemEventProperties.AfterProperties.Count == 1 &&
 itemEventProperties.AfterProperties.ContainsKey("MyToBeUpdatedFieldInternalName"))
{
 return new SPRemoteEventResult { Status = SPRemoteEventServiceStatus.Continue };
}

 

Unlike normal updating, the AfterProperties collection will contain your updated field only so you would know this is done through programmatically in your item added event.