Skip to content

[Feature request] Accessing query parameters #113

@leon175

Description

@leon175

Request

It would be a really nice feature to enable the accessibility of URL query parameters (e.g. via window.location.search) after deploying a Code App.

Current Situation

When running the Code App locally, it is possible to append query parameters to the application by adding them to the local app URL (_localAppUrl). E.g.: https://apps.powerapps.com/play/e/<env-id>/a/local?_localAppUrl=http://localhost:3000/?customParam=someValue&_localConnectionUrl=http://localhost:8080/

However, after publishing the app to an environment (and running it in there), the query parameters in window.location.search are empty. E.g.: https://apps.powerapps.com/play/e/<env-id>?tenantId=<tenant-id>&hint=<hint-id>&sourcetime=<source-time>&source=portal/customParam=someValue

When doing it like this right now, window.location.search is simply empty (does also not contain tenantId, etc.). Maybe it's possible to forward query params to the Code App to utilize them (like with Param() in a Canvas App).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestin the backlogThe issue is in the backlog for product team to fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions