Complete-R1DataSourceTypeImport

SYNOPSIS

Imports templates from an upload session.

SYNTAX

Complete-R1DataSourceTypeImport [-id] <String> [-templates] <String[]> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Imports the named templates from an upload session, making them available as data source types.

EXAMPLES

Example 1

$Session = Import-R1DataSourceType -Path .\templates.zip
Complete-R1DataSourceTypeImport -id $Session.id -templates @($Session.newTemplates).name

Uploads an archive and installs the templates in it which do not exist yet.

Example 2

Complete-R1DataSourceTypeImport -id $Session.id -templates 'My Custom'
Remove-R1DataSourceTypeImport -id $Session.id

Installs the My Custom template, overwriting it if it already exists, then clears the staging area as the control panel does. A template listed in conflictingTemplates is overwritten simply by naming it.

PARAMETERS

-id

The identifier of the upload session, as returned by Import-R1DataSourceType.

Type: String
Parameter Sets: (All)
Aliases: importId

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-templates

The names of the templates.

Type: String[]
Parameter Sets: (All)
Aliases: name

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Void

NOTES

Import-R1DataSourceType

Get-R1DataSourceTypeImportMeta