I need to run a script to extract Sitecore item data. As of now if I use the below script:
Get-ChildItem -Path master:/Sitecore/content/Data -Recurse |Show-ListView -Property DisplayName, ItemPath,TemplateName,Language,"Field1","Field2","Field3"
It gives the data in the table and the value of Field1,Field2 and Field3 are also populated for each item.
In this scenario I have to manually find all the fields in item and child item and place them in script like Field1, Field2, Field3 to get their values.
Is there a way I can get the fields from item template and use it in script instead of manually mentioning Field1,Field2,Field3