Skip to content

CREATE OR MODIFY MICROFLOW silently drops the microflow's URL (deep link) property #1120

Description

@Mohammad-Momany

Summary

CREATE OR MODIFY MICROFLOW replaces the whole microflow document. The microflow Url property (Studio Pro → microflow properties → URL, used for deep links in Mendix 10.6+) is not part of the MDL grammar, so it cannot be expressed in the script — and the rewrite discards the existing value without any warning. Every MDL edit of a microflow that carries a URL silently breaks its deep link.

Environment

  • mxcli nightly build of 2026-09-08 (Windows, amd64)
  • Mendix 10.24.25 project (MPR v2)

Steps to reproduce

  1. In Studio Pro, create a microflow MyModule.DL_OpenItem with parameter Key: String and set its URL to item/{Key}.
  2. Confirm the URL is in the unit:
    grep -rao "item/[A-Za-z{}/]*" mprcontents | sort -u
    
  3. Run any CREATE OR MODIFY MICROFLOW MyModule.DL_OpenItem (...) BEGIN ... END; that changes only the body (e.g. add a LOG activity).
  4. Re-run the grep from step 2 — the URL is gone. Studio Pro shows the URL field empty; the deep link returns 404.

Expected behaviour

Either:

  • CREATE OR MODIFY MICROFLOW preserves properties it cannot author (URL, and any other property outside the MDL grammar) when the microflow already exists, or
  • the MDL grammar accepts the property (e.g. CREATE MICROFLOW MyModule.DL_OpenItem (...) URL 'item/{Key}' ...), and DESCRIBE MICROFLOW emits it so the round trip is lossless, and
  • at minimum, mxcli warns when a rewrite drops a non-empty property.

Actual behaviour

The URL is dropped silently. mxcli check and mx check both pass; the loss is only visible in Studio Pro or when the link is called.

Notes

DESCRIBE MICROFLOW does not output the URL either, so there is no way to notice the property exists from the CLI. We now grep mprcontents for every deep-link URL after each MDL run and re-enter them in Studio Pro.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions