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 / How do I make UI actio...
Power Automate
Unanswered

How do I make UI actions dynamic for Outlook MSG files?

(0) ShareShare
ReportReport
Posted on by 1

I have a list of outlook .msg files that contain PDF attachments. I have to save these attachments into a folder, open them and then screenshot that PDF attachment, put it back into an excel sheet.

 

Since all UI actions like 1. Click on File Tab  2. Save attachments, that are performed with outlook file only work on that particular outlook file, when i open another outlook.msg file, i am unable to create a dynamic flow where in i can open outlook.msg files one after the other and perform the same action of saving attachments.

 

How do i solve this?

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The main reason why the UI elements don't work for different files are because your element selector likely has a file name in them. You need to modify the selector to not contain it.

     

    For instance, if I capture an element in an Outlook message, there will be an element and a parent window element in the controls repository:

    Agnius_0-1695031024915.png

    And both of them will actually contain the subject text of the message.

     

    Here's the one for the button:

    Agnius_1-1695031091595.png

    And here's the one for the window:

    Agnius_2-1695031116221.png

     

    Both of these need to be modified to not include the name, but instead use some other parameters. Do that and it should work dynamically for you.

     

    See this article for some more references on how to modify selectors: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors#use-variables-in-a-custom-selector

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 412

#2
Vish WR Profile Picture

Vish WR 305

#3
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

Last 30 days Overall leaderboard