Hi @Milan Ostojić
Please achieve your goal by following steps:
First, you need to find the content type ID for the default Office type. You can get them by going to Site Settings > Site Content Type Gallery and selecting the content type you want.
In your browser's address bar, you'll see a URL similar to https://yoursharepointsite/_layouts/15/ManageContentType.aspx?ctype=0x0101, where 0x0101 is the content type ID.
Second, you need to add the pnp:ContentTypeBindings tag to your pnp settings template and specify the IDs of the content types you want to apply to the document library. For example, if you want to add two content types "Document" and "Word Document", you can use the following code:
<pnp:ContentTypeBindings>
<pnp:ContentTypeBinding ContentTypeID="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D" Defa ult="true" />
<pnp:ContentTypeBinding ContentTypeID="0x0101" />
</pnp:ContentTypeBindings>
Finally, you need to apply your pnp setup template to the document library. You can use PnP PowerShell commands to do this. For example, if your template file is called "template.xml", you can use the following command:
Apply-PnPProvisioningTemplate -Path template.xml -ResourceFolder "resources"
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards
Cheng Feng