NetAppDocs PowerShell Module

Merge-NtapDocsData


NAME
    Merge-NtapDocsData

SYNOPSIS
    Merges two or more DataSets generated using the Format-Ntap* functions and output using the -XmlFile
    parameter with the Out-NtapDocument function.


SYNTAX
    Merge-NtapDocsData [-InputObject] <Object[]> [<CommonParameters>]


DESCRIPTION
    This function will merge two or more DataSets generated using the Format-Ntap* functions and output
    using the -XmlFile parameter with the Out-NtapDocument function. The input data is checked to ensure
    that the same version of NetAppDocs was previously used and that the document types are the same. It
    also checks to ensure that each system is only referenced once and are all of the same type.


PARAMETERS
    -InputObject <Object[]>
        The DataSets or XML files to process.

        Required?                    true
        Position?                    1
        Default value
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS
    System.Management.Automation.PSCustomObject

    System.IO.FileInfo

    System.String


OUTPUTS
    System.Data.DataSet


NOTES


        AUTHOR : Jason Cole

    -------------------------- EXAMPLE 1 --------------------------

    PS>Get-ChildItem -Path 'D:\NtapDocsOutput' -Filter *.xml | Merge-NtapDocsData | Out-NtapDocument -ExcelFile
    'D:\NtapDocsOutput\merged.xlsx'

    This example looks in the specified folder for all XML files generated using the Out-NtapDocument
    with the -XmlFile parameter and merges them together into a single Excel file.




    -------------------------- EXAMPLE 2 --------------------------

    PS>Merge-NtapDocsData -InputObject 'D:\NtapDocsOutput\ds1.xml', 'D:\NtapDocsOutput\ds2.xml', 'D:\NtapDocsOutput\ds3.xml' |
    Out-NtapDocument -ExcelFile 'D:\NtapDocsOutput\merged.xlsx'

    This example passes three XML files generated using the Out-NtapDocument with the -XmlFile
    parameter and merges them together into a single Excel file.





RELATED LINKS
    https://community.netapp.com/t5/NetAppDocs/bd-p/netappdocs