GithubHelp home page GithubHelp logo

cloudsmithconsulting / cds-for-code Goto Github PK

View Code? Open in Web Editor NEW
22.0 6.0 3.0 14.98 MB

VSCode extension for working with Microsoft Common Data Service (CDS)

License: MIT License

JavaScript 17.40% CSS 10.13% C# 23.67% HTML 2.70% TypeScript 37.18% PowerShell 1.12% SCSS 7.79%
vscode cds dynamics-365 dynamics-crm dynamics-crm-online dynamics365 visual-studio-code common-data-service

cds-for-code's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cds-for-code's Issues

There were errors retreiving organizations from 'your connection': HTTP Error 401.1 - Unauthorized: Access is denied

Hi Team,

I am connecting to onpremise version of 8.2 Dynamics 365 Customer Engagement Instance to use CDS for code and getting below issue

There were errors retreiving organizations from 'your connection': HTTP Error 401.1 - Unauthorized: Access is denied

I have provided all the credentials correctly, However still facing the issue. Can you please let me know where in the input configurations am i doing wrong?

image

[BUG] - Downloading webresource doesn't get latest update

I mostly work with webresources (javascript).

Start off by downloading the solution and unpack to a folder. Eventually I wan to get the latest version of the javascript from CRM. In this case someone has done a change, and clicked SAVE in CRM. This change does not show when I download the solution again. I have to publish the file for it to appear correctly.

So the bug is that it doesn't get the latest version saved online to my VS code.

What I would like is to get a right click and "get latest".

Dialog not processed while deploying solution

Hi,

extracting a test dialog from crm works fine:

grafik

grafik

Making a minor change (like description) and trying to deploy it again:

grafik

Dialog was not processed.

Am I doing something wrong or does this not work?

[BUG] "Your credentials use multi-factor authentication"

When I try to connect to an environment, I see the notification "Your credentials use multi-factor authentication" but in my broswer I see a tab with "localhost:3999" is opnend and closed.

To Reproduce
Steps to reproduce the behavior:

  1. Add a connection
  2. Click on the environment
  3. Select the instance
  4. Try to login

Expected behavior
Open a window broswer and ask for proper authentication and MFA authentication instead of "localhost:3999" and close immidiately

Screenshots
image

[FEATURE] - File name without .js

When I create .js files online, I normally give them a simple name like Opportunity/Case/Account etc. I haven't used the .js ending in the file name. This means that the program doesn't recognizes it as a .js file when trying to upload. I can't right click and choose upload webresource.

From what I understand I now have to rename all javascripts for this to work. That means recreate and "remap" everywhere.

Current status of the project?

Hello everybody,

I am wondering what the current status of this awesome project is. The latest commit is almost half a year ago and unfortunately no news on your website of somewhere else. Of course I am totally aware that developing and maintaining such a project is a huge burden and even more work to do, so I think most of us (users) would understand if lack of time would be cause for the project stagnation.

Anyway, I am looking forward to a alive signal from the project maintainers along with a statement of future directions. 😎

Peter

Add more description to solution patch

When multiple solution patches exist in the system, which have the same "Display Name", the extension only shows the same display names. If I want to deploy a web resource to one of the patches, I cannot figure out the right patch to deploy. Can the extension use the "Name" instead?

image

Describe the solution you'd like
Show the logical name of the solution.

Thanks!

unable to use CDS in visual code

Type: Bug

unable to use CDS in visual code

Extension version: 0.8.14
VS Code version: Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T10:02:16.981Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 x 2112)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 7.78GB (0.88GB free)
Process Argv --crash-reporter-id 39790b25-5e1c-40e9-897b-7478e5568268
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
a9j8j154:30646983
6233i204:30672705
vsccsb:30677849
pythonb192:30669360
defaultazurewalk:30687958
pythonms35:30701012

[FEATURE] Allow Integrated Authentication for all environments

Description:
It looks like you cannot authenticate until and unless you've provided username and password. I would hesitant to provide password specifically when I am working in a corp network.

Potential Resolution
1- OnPremise - Allow Integrated Auth
2- OAuth/AD/CDS Online - Allow using AD Login (wiz. Prompting for user/password consent screen)

[BUG] Documentation is wrong?

Describe the bug
CrmSvcUtil.md claims that we can install the package via Install-Package CloudSmith.Cds.CrmSvcUtil. But this fails.

Has the package been removed? -- Did it ever exist?

To Reproduce

  1. Open Package Manager Console.
  2. Run the specified command (Install-Package CloudSmith.Cds.CrmSvcUtil).
  3. Observe the error message: Unable to find package 'CloudSmith.Cds.CrmSvcUtil'.

Expected behavior
Following the documented steps should result in a successful package installation.

Screenshots
image

Issue deploying web resources when using MFA

Hi, I am trying to deploy a web resource, MFA is enabled.
The solution unpacks, I can edit the resource.
When I select deploy to CDS, I get this message.

Your credentials use multi-factor authentication. You will need to authenticate interactively.

What am I supposed to do interactively?

The output shows this...

[05:33:52]: Command: cs.cds.deployment.packWebResource invocation complete
[05:33:52]: Command: cs.cds.controls.explorer.packWebResource error occurred: Cannot read property 'fsPath' of undefined
[05:33:52]: Command: cs.cds.controls.explorer.packWebResource invocation complete
[05:33:52]: OAuth: removing existing token and attempting re-authentication flow.
[05:33:52]: OAuth: Refresh token found, invoking call to acquire auth token
[05:33:52]: OAuth: HTTP 401 received
[05:33:54]: OAuth: Multi-factor authentication (MFA) required, starting browser request
[05:33:54]: Browser: http://localhost:3999/auth opened by 'opn'
[05:33:56]: OAuth: Multi-factor authentication (MFA) completed and authorization code received
[05:33:58]: OAuth: Auth code converted to token successfully
[05:33:58]: HTTP GET https://globaldisco.crm.dynamics.com/api/discovery/v2.0/Instances (statusCode: 200, out: 0b, in: 6237b, time: 74ms)
[05:33:58]: OAuth: removing existing token and attempting re-authentication flow.
[05:33:58]: OAuth: Refresh token found, invoking call to acquire auth token
[05:33:58]: OAuth: HTTP 401 received
[05:33:59]: OAuth: Multi-factor authentication (MFA) required, starting browser request
[05:33:59]: Browser: http://localhost:3999/auth opened by 'opn'
[05:34:02]: OAuth: Multi-factor authentication (MFA) completed and authorization code received
[05:34:05]: OAuth: Auth code converted to token successfully

Thanks.

[BUG] Web Resource Download Does not Work if the Folder Name Contains "."

Describe the bug
When the folder with "." in the name is selected for the web resource to download upon web resource edit, nothing happens

To Reproduce
Steps to reproduce the behavior:

  1. Create a folder with "." in the VSCode workspace folder. (e.g. Test.Xrm)
  2. Connect to the environment in CDS Explorer
  3. Expand the Solution > Web Resources
  4. Click on Edit for one of the web resources
  5. In the "Choose the location" prompt, select the folder from the step 1.
  6. Nothing happens

Expected behavior
The script is downloaded into the selected folder.

Screenshots
N/A

Additional context
It only happens if the folder name contains "."
It is working fine when I downloaded into another sub folder without any "."

[BUG] Authentication for this request failed. error for accessing non-US environments

Describe the bug
CDS Explorer is not able to load the solutions from non-US environment (tested with xxx.crm6.dynamics.com) even though adding the connection and selecting the environment is working fine.

To Reproduce
Steps to reproduce the behavior:

  1. Open CDS Explorer
  2. Create New CDS Connection for non-US environment (e.g. xxx.crm6.dynamics.com)
  3. Enter the credentials and Discover
  4. Select the environment
  5. Save the connection
  6. Expand the newly created connection in the CDS explorer
  7. Expand the environment in that connect.
  8. There will be an error "Authentication for this request failed." as in the screenshot below.
  9. Check the error log in OUTPUT of VS Code.

Expected behavior
After expanding the CDS Connection and expanding the environment, CDS Explorer should show the Solutions and Applications folder of that environment. (just like how it is working for US environments xxx.crm.dynamics.com.

Screenshots
Error Message
Error Message

Failed non-US Environment just showing Loading circle
Environment Loading

Additional context
Output log of successful and failed connections

[03:11:36]: View: cs.cds.viewContainers.cdsExplorer.createEntries: Element 'US ENV' is loading child entries.
[03:11:36]: HTTP GET https://globaldisco.crm.dynamics.com/api/discovery/v2.0/Instances?$filter=Url%20eq%20%27https%3A%2F%2Fusenvironment.crm.dynamics.com%27 (statusCode: 200, out: 0b, in: 677b, time: 340ms)
[03:11:36]: View: cs.cds.viewContainers.cdsExplorer.createEntries: Element 'US ENV' loaded child entries. Parsed 1/1 entries (total: 347ms, retreive: 343ms;98.8%, parse: 4ms;1.2%)
[03:11:41]: HTTP GET https://usenvironment.api.crm.dynamics.com/api/data/v9.1/solutions?$select=solutionid,uniquename,friendlyname,version,ismanaged,isvisible&$filter=uniquename%20eq%20%27Active%27&$orderby=uniquename (statusCode: 200, out: 0b, in: 354b, time: 3939ms)

[03:11:44]: View: cs.cds.viewContainers.cdsExplorer.createEntries: Element 'AUS ENV' is loading child entries.
[03:11:44]: HTTP GET https://globaldisco.crm.dynamics.com/api/discovery/v2.0/Instances?$filter=Url%20eq%20%27https%3A%2F%2Fausenvironment.crm6.dynamics.com%27 (statusCode: 200, out: 0b, in: 678b, time: 295ms)
[03:11:44]: View: cs.cds.viewContainers.cdsExplorer.createEntries: Element 'AUS ENV' loaded child entries. Parsed 1/1 entries (total: 298ms, retreive: 297ms;99.7%, parse: 1ms;0.3%)
[03:11:46]: OAuth: removing existing token and attempting re-authentication flow.
[03:11:46]: OAuth: HTTP 401 received

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.