pnp/PnP

ItemAdding Remote Event Receiver Does Not Work

binijustin opened this issue · 0 comments

####Which PnP repository should you use to report the issue?####

Category

[x] Bug
[ ] Enhancement

Environment

[x] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013

If SharePoint on-premises, what's exact CU version:

Expected or Desired Behavior

Using "result.ChangedItemProperties.Add(ScenarioHandler.FLD_CLASSIFICATION_INTERNAL_NAME, _formatTaxonomy);" in Remote Event Receiver ItemAdding should update the taxonomy field value in the site.

Observed Behavior

Does not update the taxonomy value of the item

Steps to Reproduce

-Create a itemAdding Remote Event Receiver
-Have a list that has a taxonomy field

  • dedclare SPRemoteEventResult result = new SPRemoteEventResult();
    -use the result.ChangedItemProperties.Add("taxonomy field name", "{wssid};#{MYTERNNAME}|{taxonomyguid}"
    -return the result