web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamic content not po...
Power Automate
Unanswered

Dynamic content not possible for selector in UI flows

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Created the following UI flow with Dynamics NAV 2013 as desktop app: Create a new purchase invoice

What I've found is that the desktop app (NAV) adds the invoice number and vendor name to the window name and the selector in the UI flow afterwards. As the invoice number is generated newly with every new purchase invoice, the UI flow fails for all subsequent steps (as the window name changes every time and the selector from the recording is not valid anymore). This is an example of the recorded control: "New - Purchase Invoice - INVOICENUMBER ∙ VENDORNAME". So for every new invoice and every new vendor the name of the window is different.

Suggestion: if I could add dynamic content to the selector as with other Power Automate fields (not possible at the moment for the selector), the target window/control could be dynamically assigned.

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @HelmutWimmer 

     

    Can you please add some screenshots for more clarity? By selectors, do you mean any dynamic content that is being populated on the desktop app? How are you opening the app on desktop in the UI Flow? 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • HelmutWimmer Profile Picture
    Microsoft Employee on at

    Hi!

    Here are some screenshots of the UI flow. I simply record the flow in My Flows/UI Flows by starting the recorder.

     

    When I/the system clicks on creating a new Purchase Invoice, a new window is created which is named "New - Purchase Invoice"

     

    2020-01-23 09_24_46-navuiflows10 - 13.69.139.74_3389 - Remote Desktop Connection.png

     

    So, in the selector field for the UI Flow step, it will show the name of the window like this (see the name field in the JSON):

    {
     "automationId": "{00000033-0000-0000-0108-0000836BD2D2}",
     "boundingRectangle": "330;222;1859;1481",
     "className": "WindowsForms10.Window.8.app.0.265601d_r9_ad1",
     "controlType": "50032",
     "frameworkId": "WinForm",
     "name": "New - Purchase Invoice",
     "localizedControlType": "Window"
    }

     

    After selecting a new purchase invoice number and the vendor, the name of the active window is changed like this. The name of the window changes to "New - Purchase Invoice - 1070 - myTaxi Austria GmbH". It is the SAME window as above, just the name of the window changes.

    2020-01-23 09_25_21-navuiflows10 - 13.69.139.74_3389 - Remote Desktop Connection.png

     

    For all subsequent clicks the recorder changes the selector field. You can see the change in the name field of the JSON:

    {
     "automationId": "{00000033-0000-0000-0108-0000836BD2D2}",
     "boundingRectangle": "330;222;1859;1481",
     "className": "WindowsForms10.Window.8.app.0.265601d_r9_ad1",
     "controlType": "50032",
     "frameworkId": "WinForm",
     "name": "New - Purchase Invoice - 1070 ∙ myTaxi Austria GmbH",
     "localizedControlType": "Window"
    }

     

    With a behavior like this (the legacy app being recorded changing the name of the active window), all subsequent steps of the UI flow will fail as the window changed the name from when it was created and used first.

    Therefore, it would be great if one could use dynamic content for the selector in the UI flow:

    2020-01-23 09_26_51-Manage your flows _ Microsoft Power Automate.png

     

     

     

     

     

     

  • Dudders Profile Picture
    3 on at

    I have come across the same issue as @HelmutWimmer, any resolution?  If there was a way to use the currently active selector without referencing the window name, it could be avoided since the new file is still selected by the UI.  Don't know if that is possible though.

     

    Sorry for hijacking onto your post, but this is the only discussion in existence on this topic.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard