I have SharePoint 2013 sites and I have created the task list.

Now I want to export that Schema XML using CSOM or PnP PowerShell.

Can someone suggest me?

  • Do you want to export schema for whole site or a specific task list? What is the end target of exporting the schema? You want to create new site/list using same schema? Jul 1, 2021 at 14:20
  • i want to export to task list which is enabled to send email to owner. so that, i will fetch the property called email enabled and i can check that property whether it is true or false. If it is true i will export that particular list in csv. This what i want
    – Liz
    Jul 1, 2021 at 14:28

1 Answer 1


Use below PnP PowerShell command to check if E-Mail Notification is enabled on task list:

$list = Get-PnPList -Identity Tasks -Include EnableAssignToEmail 

Where Tasks is name of list.


enter image description here

Documentation: Get-PnPList

Additional reference: Export SharePoint Online List Items To CSV Using PnP PowerShell

  • 1
    Really thank you @Ganesh Sanp. I have been confusing my self so long for this logic, actually you saved lot of time.... much appreciated :)
    – Liz
    Jul 2, 2021 at 10:19
  • You're welcome Liz. Glad it worked for you. Jul 2, 2021 at 10:43
  • How to get that list url using pnp powershell
    – Liz
    Jul 2, 2021 at 15:21
  • You can get all lists in the current web using Get-PnPList --> Then you can loop on it & add condition for your required list. Check more information at: docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/… Jul 3, 2021 at 6:13
  • yes I understood that concept. i can get the list. But i want to fetch the particular listURL using Pnp powershell. I know getting the list URL in CSOM powershell is easy. But in pnp not able to get it.
    – Liz
    Jul 3, 2021 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.