Skip to content

Commit

Permalink
Using the Directory parameter directly in the params
Browse files Browse the repository at this point in the history
  • Loading branch information
ismits committed Jun 27, 2024
1 parent 3de5fc0 commit b7fee33
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions d365fo.tools/internal/functions/start-lcsuploadv2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,11 @@ function Start-LcsUploadV2 {
begin {
Invoke-TimeSignal -Start

if ($Description) {
$jsonDescription = $Description
}
else {
$jsonDescription = $null
}

$fileTypeValue = [int]$FileType
$jsonPayload = @{
Name = $Name
FileName = $Filename
FileDescription = $jsonDescription
FileDescription = $Description
SizeByte = 0
FileType = $fileTypeValue
} | ConvertTo-Json
Expand Down

0 comments on commit b7fee33

Please sign in to comment.