Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Add-PnPField not supporting a ReturnType to be set for calculated field #2765

Merged
merged 3 commits into from
Jan 31, 2023

Conversation

KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Mentioned here https://www.sharepointpals.com/post/tip-difference-between-add-pnpfieldfromxml-and-add-pnpfield-while-creating-calculated-fields-using-pnp-powershell/

What is in this Pull Request ?

Calculated fields added through Add-PnPField only allowed for their ReturnType to be set if they were created on a list level.
For the site level they would always be set at Text. Fixed now so that also works when creating fields using Add-PnPField on a site level.

@gautamdsheth gautamdsheth merged commit d817bfb into pnp:dev Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants