Forum Discussion
Easty12345
Aug 17, 2021Copper Contributor
Updating a list in SharePoint framework - SPFx WebPart
I have followed https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/provision-sp-assets-from-package and https://docs.microsoft.com/en-us/sharepoint/dev/spfx/toolchain/provisio...
FeliciaA
Sep 30, 2021Copper Contributor
Hi, Easty12345, dhendry
You would need to add the attribute Overwrite = "TRUE" (if you don't have any subsites) but if you have subsites, you would also need to add the attribute OverwriteInChildScopes = "TRUE".
It is by design for a choice field that by default the existing field will not be updated. This is because often end users or site owners/admin may make some changes to the choice values/options so you would need to be careful and make sure that noone is making any changes to the existing field that you don't want to overwrite when deploying the choice field.
Hope this helps.
Cheers
Felicia