Hi,
I'm trying to upload a file to Asset Library via D365 Tools in powershell.
How to obtain the BearerToken?
here's the example from the command "Get-Help Invoke-D365LcsUpload -Examples"
PS C:\>Invoke-D365LcsUpload -ProjectId 123456789 -BearerToken "Bearer JldjfafLJdfjlfsalfd..." -FilePath "C:\temp\d365fo.tools\Release-2019-05-05.zip" -FileType "SoftwareDeployablePackage" -Name "Release-2019-05-05" -Filename "Release-2019-05-05.zip" -FileDescription "Build based on sprint: SuperSprint-1" -LcsApiUri "https://lcsapi.lcs.dynamics.com"
Appreciate any tips.
Thanks.
It worked finally.
d365fo.tools seems to be broken, somethings not right. Even though I downloaded latest update.
I could get the bearer token from postman
This topic is not related no D365 but to a tool of github, you can open a query in github fot that.
But the error message is related to a missing env variable in your environment.
Doesn't seems related?
If you are using PowerShell d365fo.tools, you can get the token using command Get-D365LcsApiToken.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156