Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Added possibility to set AllowDeletion for a field #2688

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

jensotto
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
New sample? no
Related issues? N/A

What's in this Pull Request?

Adds the possibility to set and get the AllowDeletion for a field. This is not exposed by CSOM, but is available by manually manipulating the SchemaXML for the field.
This can be usefull to prevent users from accidentally deleting a field and loosing data contained in that field for all items in a list. Also it will make it possible to prevent deletion of a field from site columns.

A UserVoice request has been created to expose this in CSOM. In the meantime this workaround should cover it.
https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/40701070-expose-field-property-setter-for-allowdeletion

@jansenbe jansenbe self-assigned this Jun 25, 2020
@jansenbe jansenbe merged commit 680d07c into pnp:dev Jun 29, 2020
jansenbe added a commit that referenced this pull request Jun 29, 2020
@jansenbe
Copy link
Contributor

Thanks for this one @jensotto !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants