Skip to content

Commit

Permalink
Accept Null as a parameter #526 from xrmsolutionsuk/525
Browse files Browse the repository at this point in the history
Accept Null as a parameter #525
  • Loading branch information
seanmcne authored Sep 18, 2023
2 parents 2c671af + 3c6d3af commit 517454d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Microsoft.Xrm.Data.PowerShell/Microsoft.Xrm.Data.PowerShell.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1306,10 +1306,10 @@ function Add-CrmActivityToCrmRecord{
foreach($field in $Fields.GetEnumerator())
{
$newfield = New-Object -TypeName 'Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper'
$newfield.Type = MapFieldTypeByFieldValue -Value $field.Value
$newfield.Value = $field.Value
$newfields.Add($field.Key, $newfield)
}
$newfield.Type = MapFieldTypeByFieldValue -Value $field.Value
$newfield.Value = $field.Value
$newfields.Add($field.Key, $newfield)
}
}

try
Expand Down Expand Up @@ -5603,7 +5603,7 @@ function VerifyCrmConnectionParam {

function MapFieldTypeByFieldValue {
PARAM(
[Parameter(Mandatory=$true)]
[Parameter(Mandatory=$true)][AllowNull()]
[object]$Value
)

Expand Down Expand Up @@ -5792,4 +5792,4 @@ function UnzipCrmRibbon {
$reader = $null
}
}
}
}

0 comments on commit 517454d

Please sign in to comment.