pnp / pnp/sp-dev-fx-controls-react

[DynamicForm] Creating a document set problem

Open
#2,069 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!

Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.

Category

[ ] Enhancement

[ ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.20.0 ]

If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.

Expected / Desired Behavior / Question

If you are reporting an issue please describe the expected behavior. If you are suggesting an enhancement please
describe thoroughly the enhancement, how it can be achieved, and expected benefit. If you are asking a question, ask away!

Observed Behavior

Document Set creation problem.
In the level 1 of Document Set, we see only allowed content types when User click on New Button. From Level 2, user see the Document Set Content Type in New Button wich is a problem.

When the document set is created from SharePoint UI or from PnP PowerShell, New button works perfectly.

Steps to Reproduce

If you are reporting an issue please describe the steps to reproduce the bug in sufficient detail to allow testing. If you are making
a suggestion or asking a question delete this section.

Submission Guidelines

I think that we should use the document set api to create a document set folder

await spHttpClient.post(
${webUrl}/_api/SP.DocumentSet.DocumentSet.Create,
{
parentFolder: { ServerRelativeUrl: parentPath },
name: folderName,
contentTypeId: documentSetContentTypeId
}
);

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the DynamicForm control and trace how the New button handles Document Set content types at level 2. Review the proposed SP.DocumentSet.DocumentSet.Create API call and compare its behavior with the current flow. Done means level 1 and level 2 show the correct allowed content types and Document Set creation matches SharePoint UI behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.