774. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:57:03 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

774.1 Files compared

# Location File Last Modified
1 C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\SDK\SampleCode\PS ImportOrg.ps1 Tue Dec 20 19:51:48 2016 UTC
2 Wed Feb 1 19:57:03 2017 UTC

774.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 51

774.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

774.4 Active regular expressions

No regular expressions were active.

774.5 Comparison detail

1   param        
2   (        
3       #requi red params        
4       [strin g]$Databas eName = $( throw "Dat abaseName  parameter  not specif ied"),        
5       [strin g]$SqlServ erName = $ env:COMPUT ERNAME,        
6       [strin g]$SrsUrl  = "http:// $SqlServer Name/repor tserver",        
7       [strin g]$UserMap pingMethod  = "ByAcco unt",        
8               
9       #optio nal params  (can acce pt nulls)        
10       [strin g]$Display Name,        
11       [strin g]$Name,        
12       [switc h]$WaitFor Job        
13   )        
14          
15   $RemoveSna pInWhenDon e = $False        
16          
17   if (-not ( Get-PSSnap in -Name M icrosoft.C rm.PowerSh ell -Error Action Sil entlyConti nue))        
18   {        
19       Add-PS Snapin Mic rosoft.Crm .PowerShel l        
20       $Remov eSnapInWhe nDone = $T rue        
21   }        
22          
23   $opId = Im port-CrmOr ganization  -SqlServe rName $Sql ServerName  -Database Name $Data baseName - SrsUrl $Sr sUrl -Disp layName $D isplayName  -Name $Na me -UserMa ppingMetho d $UserMap pingMethod        
24   $opId        
25          
26   if($WaitFo rJob)        
27   {        
28       $opsta tus = Get- CrmOperati onStatus - OperationI d $opid        
29       while( $opstatus. State -eq  "Processin g")        
30       {        
31           Wr ite-Host [ (Get-Date) ] Processi ng...        
32           St art-Sleep  -s 30        
33           $o pstatus =  Get-CrmOpe rationStat us -Operat ionId $opi d        
34       }        
35          
36       if($op status.Sta te -eq "Fa iled")        
37       {        
38           Th row ($opst atus.Proce ssingError .Message)        
39       }        
40          
41       Write- Host [(Get -Date)] Im port org c ompleted s uccessfull y.        
42   }        
43   else        
44   {        
45       Write- Host [(Get -Date)] Im port org a sync job r equested.        
46   }        
47          
48   if($Remove SnapInWhen Done)        
49   {        
50       Remove -PSSnapin  Microsoft. Crm.PowerS hell        
51   }