I replaced the Dynamic Microflow widget by a Format string. That does what I want and so solved my problem.
There is a new feature for the standard microflow button:
You can also choose to use an entity attribute as caption, instead of a literal value.