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.
| # | 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 | CreateOrg.ps1 | Tue Dec 20 19:51:48 2016 UTC |
| 2 | Wed Feb 1 19:57:03 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 61 |
| 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 |
No regular expressions were active.
| 1 | Function c reateorg{ | |||||
| 2 | param | |||||
| 3 | ( | |||||
| 4 | #requir ed params | |||||
| 5 | [strin g]$Display Name ="Tes torgan", | |||||
| 6 | [strin g]$SqlServ erName = $ env:COMPUT ERNAME, | |||||
| 7 | [strin g]$SrsUrl = "http:// $SqlServer Name/repor tserver", | |||||
| 8 | ||||||
| 9 | #optio nal params (can acce pt nulls) | |||||
| 10 | [strin g]$Name, | |||||
| 11 | [strin g]$BaseCur rencyCode, | |||||
| 12 | [strin g]$BaseCur rencyName, | |||||
| 13 | [strin g]$BaseCur rencySymbo l, | |||||
| 14 | [strin g]$BaseCur rencyPreci sion, | |||||
| 15 | [strin g]$BaseLan guageCode, | |||||
| 16 | [strin g]$SqlColl ation, | |||||
| 17 | [strin g]$SQMOptI n, | |||||
| 18 | [strin g]$SysAdmi nName, | |||||
| 19 | [switc h]$WaitFor Job=$True | |||||
| 20 | ) | |||||
| 21 | ||||||
| 22 | $RemoveSna pInWhenDon e = $False | |||||
| 23 | ||||||
| 24 | if (-not ( Get-PSSnap in -Name M icrosoft.C rm.PowerSh ell -Error Action Sil entlyConti nue)) | |||||
| 25 | { | |||||
| 26 | Add-PS Snapin Mic rosoft.Crm .PowerShel l | |||||
| 27 | $Remov eSnapInWhe nDone = $T rue | |||||
| 28 | } | |||||
| 29 | ||||||
| 30 | ||||||
| 31 | $opId = Ne w-CrmOrgan ization -D isplayName $DisplayN ame -SqlSe rverName $ SqlServerN ame -SrsUr l $SrsUrl -Name $Nam e -BaseCur rencyCode $BaseCurre ncyCode -B aseCurrenc yName $Bas eCurrencyN ame -BaseC urrencySym bol $BaseC urrencySym bol -BaseC urrencyPre cision $Ba seCurrency Precision -BaseLangu ageCode $B aseLanguag eCode -Sql Collation $SqlCollat ion -SQMOp tIn $SQMOp tIn -SysAd minName $S ysAdminNam e | |||||
| 32 | $opId | |||||
| 33 | ||||||
| 34 | ||||||
| 35 | if($WaitFo rJob) | |||||
| 36 | { | |||||
| 37 | $opsta tus = Get- CrmOperati onStatus - OperationI d $opid | |||||
| 38 | while( $opstatus. State -eq "Processin g") | |||||
| 39 | { | |||||
| 40 | Wr ite-Host [ (Get-Date) ] Processi ng... | |||||
| 41 | St art-Sleep -s 30 | |||||
| 42 | $o pstatus = Get-CrmOpe rationStat us -Operat ionId $opi d | |||||
| 43 | } | |||||
| 44 | ||||||
| 45 | if($op status.Sta te -eq "Fa iled") | |||||
| 46 | { | |||||
| 47 | Th row ($opst atus.Proce ssingError .Message) | |||||
| 48 | } | |||||
| 49 | ||||||
| 50 | Write- Host [(Get -Date)] Cr eate org c ompleted s uccessfull y. | |||||
| 51 | } | |||||
| 52 | else | |||||
| 53 | { | |||||
| 54 | Write- Host [(Get -Date)] Cr eate org a sync job r equested. | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | if($Remove SnapInWhen Done) | |||||
| 58 | { | |||||
| 59 | Remove -PSSnapin Microsoft. Crm.PowerS hell | |||||
| 60 | } | |||||
| 61 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.