Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] development from d365collaborative:development #106

Merged
merged 5 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading