Skip to content

Enhancement: Add option to push Content Type changes to children #3792

@martinlingstuyl

Description

@martinlingstuyl

When using the spo contenttype set command, the changes are not pushed to child contenttypes if you execute them on site level.

The purpose of this issue is to add a flag --updateChildren to force the changes to be saved to the child types.

Option Description
--updateChildren Use this flag to update child content types as well.

Additional Info

With the REST Api we can use the Update function on Content Type level to do so:

/_api/Web/ContentTypes('0x01')/update(true)

Pushes the changes on the content type to the children.

Update: the update(true) function cannot be used as far as we can see. We'll be switching this command to use the older list.svc API.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions