Timeline for Unable to change the managed metadata fields for my Files and Folders inside my remote event receiver
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 26, 2020 at 17:04 | comment | added | willman |
The two big difficulties with setting a Taxonomy value, are making sure your value is stored in a TaxonomyFieldValue object -- which in your case should already be true since you are copying it from an existing item's field; but the second issue is you can't just set item["mytaxfield"] = the value even if it is already a TaxonomyFieldValue , you have to use the Field.SetFieldValueByValue(listItemTeBeUpdated, taxonomyFieldValueToSave) . It was likely this second issue that was catching you.
|
|
Feb 26, 2020 at 16:47 | vote | accept | John John | ||
Feb 26, 2020 at 16:47 | comment | added | John John | your code worked for me, thanks a lot for the help.. but do you know why my code did not work, although on paper it should.. | |
Feb 26, 2020 at 16:29 | history | answered | willman | CC BY-SA 4.0 |