Skip to content

Commit dd679b3

Browse files
authored
Merge pull request #16 from DigitalFlow/bugfix/CopyAcrossSystems
Bugfix/copy across systems
2 parents fec42b2 + 617c97e commit dd679b3

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ A Plugin for the XrmToolBox that allows to copy field definitions from one entit
33
It supports most field types, even lookups.
44

55
# Known issues
6+
- When copying across systems and across entities, you might need to publish the target entity after cloning for the new attributes to be appear in the default solution (it might not be visible anywhere before publishing).
67
- Copying of Customer Lookups (2016 feature) is not yet possible
78

89
# Contributors

build.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let packagesDir = @".\packages\"
2525
// version info
2626
let majorversion = 1
2727
let minorversion = 2
28-
let patch = 1
28+
let patch = 2
2929

3030
let sha = Git.Information.getCurrentHash()
3131

src/lib/MsDyn.Contrib.CloneFieldDefinitions/CloneFieldsControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ private void CloneFields(List<string> fields, string sourceEntityName, string ta
564564
}
565565

566566
// Don't regenerate ID if transfering to different organization
567-
if (AdditionalConnectionDetails == null || AdditionalConnectionDetails.Count == 0)
567+
if (AdditionalConnectionDetails == null || AdditionalConnectionDetails.Count == 0 || !string.Equals(sourceEntityName, targetEntityName, StringComparison.InvariantCultureIgnoreCase))
568568
{
569569
attribute.MetadataId = Guid.NewGuid();
570570
}

0 commit comments

Comments
 (0)