Skip to content

Xrm.Navigation.openUrl's second argument is optional #312

@DarkFormat

Description

@DarkFormat

Describe the bug
According to "xrm_ext_9-.d.ts", the function "openUrl" within the interface "NavigationOptions" takes two parameters.

  • url: string
  • openUrlOptions: SizeOptions

The second argument however, should be optional, as Xrm.Navigation.openUrl doesn't have "openUrlOptions" as required parameter.

Source: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-navigation/openurl

To Reproduce
Steps to reproduce the behavior:

  1. Try calling Xrm.Navigation.openUrl anywhere within your code where applicable with a single argument.

Expected behavior
Argument 2, "openUrlOptions", should not be required within the types.

Screenshots
N/A

Environment

  • CRM/D365/CDS version: 9.2
  • Tool version: 6.6.1
  • Other applicable environments

Additional context
N/A

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