Skip to content

[DynamicForm] Creating a document set problem #2069

@aminezemzemi

Description

@aminezemzemi

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions