Skip to content

New-Item -ForceID does not work with branch templates #1269

@zmalmquistmerkle

Description

@zmalmquistmerkle

Expected Behavior

When using ForceID with branch templates I expect that the GUID is maintained

Actual Behavior

The ID I set is ignored and a random guid is set instead

Steps to Reproduce the Problem

Example - $DestinationItem = New-Item -Path $locationDataPath -Name $SourceItem.Name -ItemType "{CBD20F7D-DEBA-4CAB-8B76-E0531963E7B7}" -ForceId $SourceItem.Id

if ItemType is of branch template, this fails to use the ID I send it

Please include the version number of SPE and Sitecore.

SPE - 6.3
Sitecore - 10.2

Metadata

Metadata

Assignees

Labels

area-commandsInvolves functions and cmdlets.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions