Skip to content

Commit

Permalink
Merge pull request d365collaborative#840 from ismits/bugfix/839-corre…
Browse files Browse the repository at this point in the history
…cting-description-for-start-lcsuploadv2

Bugfix for Issue 839: File Description not correctly set in LCS Asset upload
  • Loading branch information
FH-Inway authored Jun 30, 2024
2 parents bb53225 + b7fee33 commit 72bd033
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions d365fo.tools/internal/functions/start-lcsuploadv2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
.DESCRIPTION
Start the flow of actions to upload a file to LCS
.PARAMETER Token
The token to be used for the http request against the LCS API
.PARAMETER BearerToken
The token you want to use when working against the LCS api
.PARAMETER ProjectId
The project id for the Dynamics 365 for Finance & Operations project inside LCS
Expand Down Expand Up @@ -95,7 +95,8 @@ function Start-LcsUploadV2 {
[Cmdletbinding()]
param(
[Parameter(Mandatory = $true)]
[string] $Token,
[Alias('Token')]
[string] $BearerToken,

[Parameter(Mandatory = $true)]
[int] $ProjectId,
Expand Down Expand Up @@ -123,7 +124,7 @@ function Start-LcsUploadV2 {
$jsonPayload = @{
Name = $Name
FileName = $Filename
FileDescription = $jsonDescription
FileDescription = $Description
SizeByte = 0
FileType = $fileTypeValue
} | ConvertTo-Json
Expand Down

0 comments on commit 72bd033

Please sign in to comment.