Skip to content

Solution checker complains about dg.xrmquery.web.js #292

@mihails-simvulidi

Description

@mihails-simvulidi

Describe the bug
Power Apps solution checker shows a medium severity issues because:

  1. Deprecated Xrm.Page is used in dg.xrmquery.web.js.
  2. == and != are used for comparison instead of === and !==.

To Reproduce
Steps to reproduce the behavior:

  1. Run XrmDefinitelyTyped.exe.
  2. Create a TypeScript script which uses XrmQuery.
  3. Build and run webpack.
  4. Upload the generated JavaScript file to a new solution.
  5. Run the solution checker on this solution.

Expected behavior
No solution checker issues. It could be achieved by:

  1. Only including the code which uses Xrm.Page when using Dynamics 365 versions below 9.0 which do not support newer client API.
  2. Replacing == and != with === and !==.

Screenshots
Solution check results

Environment

  • CRM/D365/CDS version: 9.2.23074.00178
  • Tool version: 6.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions