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 | SetAdvancedSettings.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 | 33 |
| 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 | param | |||||
| 2 | ( | |||||
| 3 | #optio nal params | |||||
| 4 | [strin g]$Configu rationEnti tyName, | |||||
| 5 | [strin g]$Setting Name, | |||||
| 6 | [objec t]$Setting Value, | |||||
| 7 | [Guid] $Id | |||||
| 8 | ) | |||||
| 9 | ||||||
| 10 | $RemoveSna pInWhenDon e = $False | |||||
| 11 | ||||||
| 12 | if (-not ( Get-PSSnap in -Name M icrosoft.C rm.PowerSh ell -Error Action Sil entlyConti nue)) | |||||
| 13 | { | |||||
| 14 | Add-PS Snapin Mic rosoft.Crm .PowerShel l | |||||
| 15 | $Remov eSnapInWhe nDone = $T rue | |||||
| 16 | } | |||||
| 17 | ||||||
| 18 | $setting = New-Objec t "Microso ft.Xrm.Sdk .Deploymen t.Configur ationEntit y" | |||||
| 19 | $setting.L ogicalName = $Config urationEnt ityName | |||||
| 20 | if($Id) { $setting.I d = $Id } | |||||
| 21 | ||||||
| 22 | $setting.A ttributes = New-Obje ct "Micros oft.Xrm.Sd k.Deployme nt.Attribu teCollecti on" | |||||
| 23 | $keypair = New-Objec t "System. Collection s.Generic. KeyValuePa ir[String, Object]" ($SettingN ame, $Sett ingValue) | |||||
| 24 | $setting.A ttributes. Add($keypa ir) | |||||
| 25 | ||||||
| 26 | Set-CrmAdv ancedSetti ng -Entity $setting | |||||
| 27 | ||||||
| 28 | if($Remove SnapInWhen Done) | |||||
| 29 | { | |||||
| 30 | Remove -PSSnapin Microsoft. Crm.PowerS hell | |||||
| 31 | } | |||||
| 32 | ||||||
| 33 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.